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.

DarkBASIC Professional Discussion / How do I make an object metaly

Author
Message
Wik
23
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 9th Oct 2003 00:38
On the box it sayd that you can create a "metalic shine."

If it's with sphere mapping, then how do you get it to work?

The rock has rolled!
Hamish McHaggis
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 9th Oct 2003 01:03
Get a texture of your surroundings (a room is good) and use that for sphere mapping. Not just a plain texture.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Oct 2003 01:37
There's a good example in the tutorials folder - nice spacecraft that couldn't get any shinier!

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Wik
23
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 9th Oct 2003 04:29
Can someone plaese make a demo with a shiny black sphere?

Thanks

The rock has rolled!
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Oct 2003 05:20
Just change the image to something you like. Though sphere mapping on a sphere won't look like much. The way the object gets its effect is by its rotation. Rotating a sphere will always look the same from every angle.


Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 9th Oct 2003 15:32
Depends what kind of metalic you want. If you need a 100% reflective surface (like mirror), then sphere mapping is the way to go. But what you need is just to have metalic look surface, then what you need to do is just set the specular color via SET OBJECT SPECULAR and SET OBJECT SPECULAR POWER.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 9th Oct 2003 15:34
Sphere mapping is one way, I use it alot because it does'nt kill the frame rate - I reckon the advertisement is referring to pixel shaders. Take a look back at newsletter issue 8(I think), and get the Alienware media demo - that shows a nice example of a metallic shader effect on an alien model with a metal suit - also shows shadows. Shaders will only work on a decent spec graphics card, shadows and sphere/cube mapping works fine on my GeForce2. Remember to error trap your hardware shaders loading code, you would'nt want to stop lower spec users from being able to play your stuff.


Van-B

BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Oct 2003 16:05
Quote: "shadows and sphere/cube mapping works fine on my GeForce2"


I have a GeForce2, shadows work, but the error trapping says that it's not available?!?!

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 9th Oct 2003 19:40
For metallic lighting check out the aniso.fx shader that comes with DBP - it's under one of the 3d showcases.

c:/dos
c:/dos run
run dos run
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 10th Oct 2003 03:18
It also massively helps to use "set normalization on". I find it kind of brain dead that normals are not on by default.
--
TAZ
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Oct 2003 11:43
Batvink,

I thought that too, I only discovered that shadows were supported when I ran that Alienware demo. I have a GF2 440mmx 64mb - nothing special, so your GF2 should support shadows too.


Van-B

Login to post a reply

Server time is: 2026-07-26 05:03:52
Your offset time is: 2026-07-26 05:03:52