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 / 3D Object Painting. DBPro

Author
Message
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th Apr 2005 09:01
Lots of remarks to read.
Use the left/right arrows to orbit the camera around the object.
Use the left mouse button to "paint".

Comments welcome.
Enjoy.

Demonstrates the very basics of how to do bullet holes or footprints.


"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 27th Apr 2005 12:25
If you take out the bit that deletes the object if it already exists, and change so that if it does exist already, it just repositions it, then you won't get slow down from deleting it, as you won't be.



Good example though.

You are not alone.
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th Apr 2005 13:14
Good point Aura. Thank you and thank you.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
fasdfsdaf
20
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 27th Apr 2005 14:44
Cool, but if you just want to do a sprite, would you place the sprite at the:

object screen y()

and

object screen x()

positions, and then rotate the sprite based on the angle of the camera? Because doesn't it take more memory and speed if you just "paint" a 3d object than if you use sprites?

[me]"My throat froze!"
[other person]"Force quit it next time..."
A.K.A Death Stalker
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th Apr 2005 14:54 Edited at: 27th Apr 2005 14:56
Quote: "doesn't it take more memory and speed if you just "paint" a 3d object than if you use sprites?"


Correct. The problem I can't get around is how to handle the sprite-to-camera movement and perspective size. As long as the camera is static, I would use sprites or 2d draw commands. But not in an FPS or 3D RPG. The best comprimise is to use triangles or plains with a bmp on them and then make them transperant.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 28th Apr 2005 19:25
You can also get rid of all that complicated pick screen and intersect stuff by using the wonderful PICK OBJECT command. Change paint function to this:



Boo!
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 29th Apr 2005 07:43
Wow! There is no real documentation in the help indicating that - though now I see how it is (vaguely) implied.

Thanks Spooky!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II

Login to post a reply

Server time is: 2025-05-18 08:34:40
Your offset time is: 2025-05-18 08:34:40