Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / reflective sphere

Author
Message
Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 4th Jun 2005 00:03 Edited at: 4th Jun 2005 00:05
I am trying to make a sphere look like very reflective metal.

I already know about set spheremapping on and stuff like that but it doesnt work

here is the code:



thanks for any help

"Use the force you must..."
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 4th Jun 2005 00:56 Edited at: 4th Jun 2005 00:59
You forgot the SYNC command

With the sync command you simply updating the screen. I have set it so it will update the screen with 60 images per second as you can see in the line "Sync Rate 60".
if you change it to 0 it will update the screen as fast as your computer can

Your code should look like this:



Hope that helped!

Visit PanzerGames here
Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 4th Jun 2005 20:05
o.k my code lok s like this:


but i still get two dark spheres with one copy of the texture fixed on the inside, and a texture going round on the outside.

no reflections

"Use the force you must..."
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 4th Jun 2005 20:50
Well i can't really help you with that one:-( Sorry about that...

Visit PanzerGames here
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 5th Jun 2005 01:34
well, you could try using reflection shading. It depends on your graphics card and it can look quite bad if used badly but it is also quite effective when used properly

Part of solving the problem is actually noticing that the problem is there in the first place

Mr Bigger
19
Years of Service
User Offline
Joined: 31st Jan 2005
Location: was here!
Posted: 5th Jun 2005 23:06 Edited at: 6th Jun 2005 00:01
To give your sphere more highlight just set the object specular to
something higher like "Set Object Specular 1,RGB(128,128,128)".With the right textures and practice this can make a convincing reflection but not perfect as people dont really focus on the reflection anyways.I dont think the reflection shading will look very good on a sphere as DBP uses a stencil technique that only renders a single direction of reflection.In other words the reflection will not appear to wrap the sphere.Hmm,maybe you could use cube mapping to make a shiny metal ball.

Login to post a reply

Server time is: 2024-09-23 21:17:22
Your offset time is: 2024-09-23 21:17:22