Skip to main content
gamedev.net
🔒 Locked

partially invisible objects

Started by DocJunioR 0 replies 600+ views
Original Post
DocJunioR
DocJunioR
Hi, How can I realize an engine in which objects located between camera and avatar become partially invisible? I don't want them to disappear completely but e.g. become transparent. cya && thx DjR Edited by - DocJunioR on January 6, 2002 3:49:56 PM
cYaDjR====================may you be in heaven half an hourbefore devil knows you''re dead ;)
BerLan
BerLan
Simple solution:

Shoot a ray from your camera towards the avatar and check if it hits any polygons. Do this for each object, and just store if the ray has hit any of its polygons. Then render the objects that were hit as translucent.
--BerLan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.