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.

Geek Culture / Building 3D render - depth equation

Author
Message
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Sep 2003 22:27
I was reading a tutorial on how to make a 3d renderer in flash. It contained loads on information on translating a 3d coord into a 2d screen coord.

It included a depth equation, however it was slightly bogged down in actionscript so I couldn't glean enough info fomr it to build my own render.

Does anybody have any sites / info that could help?

Thanks

c:/dos
c:/dos run
run dos run
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Sep 2003 23:16 Edited at: 17th Sep 2003 23:21
just found chiwawa's snippet - i'll try and have a play around

c:/dos
c:/dos run
run dos run
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 18th Sep 2003 00:50
Simple enough. Of course like always this assumes the verts have been transformed relative to the cameras orientation.

ScreenX = (WorldX * ProjectionX) / WorldZ
ScreenY = (WorldY * ProjectionY) / WorldZ

Kevin Picone
Play Basic - Visible Worlds - Kyruss II
[url]www.underwaredesign.com[/url]

Login to post a reply

Server time is: 2024-11-23 22:10:58
Your offset time is: 2024-11-23 22:10:58