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.

Code Snippets / Raytrace example?

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Jul 2005 19:49
I think it could be called that. Hmm, now that I think about it, its just a raycasting example. Eh, whatever, boredom prevails again.



PETA - People for the Eating of Tasty Animals
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 2nd Jul 2005 23:08
Pretty cool. I've just started working on raytracing stuff so I thought I'd take a look. I'm trying to work out how to go about lightmapping. Any ideas? Sorry for asking in a thread about your work but it seemed relevant!

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Jul 2005 17:58
Search on Gamedev.net or Flipcode.net. I know there's tons of stuff about lightmapping there. To do this in 3D, you'd need some sort of ray/triangle intersection I would imagine. A cheap way of doing lightmapping would be to check each vertex of a triangle. Draw a line from the vertex to the light source, and if nothing intersects it, change the diffuse color of that vertex. Obviously, not the most accurate way.

PETA - People for the Eating of Tasty Animals
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 4th Jul 2005 01:21
OK. I'll check them out. Thanks!

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com
BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 14th Jul 2005 23:23 Edited at: 14th Jul 2005 23:24
2D Volumetric lighting is what u would call that. if u can turn that into 3d that would be ace.

SSDD
Same Sh** Different Day
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 26th Jul 2005 13:18
yup

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Jul 2005 13:03
I technically already have the routines written to implement it into 3d if I wanted. The question is, what would the light rays be made of?

PETA - People for the Eating of Tasty Animals
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 27th Jul 2005 18:07
Light?

If you made it like a spiky ball, like from several spike objects that are ghosted, then perhaps it would make a nice effect. Imagine it's inside an egg, and when the egg begins to crack open, the spiky light thing starts popping through and some spikes would protrude.

That would make a cool glow effect for lighting effects, a bit processor heavy though.


Van-B

Login to post a reply

Server time is: 2024-11-23 11:31:22
Your offset time is: 2024-11-23 11:31:22