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 Discussion / Sky (space) Matrix - How do I apply a texture to this ?

Author
Message
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 5th Feb 2006 11:07
Trying to add a texture to this matrix to form 3D "space" a universe effectively... ca nanyone tell me how to apply a texture so I am inside the sphere of stars ?

See code
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 5th Feb 2006 12:10 Edited at: 5th Feb 2006 12:11
When you use texture object, it's going to apply the texture to the wrong side of the sphere (unfortunately)

Attached here is a quick 15 second model, where when you apply a texture to it, the texture will appear on the inside of the model, and not the outside (Hopefully a sphere doesn't need properly UV mapping, I suck at that)

To apply a texture:
load image
texture object (the sphere, and the picture to texture it with)
move object (the sphere - into the the position you want it, I'd guess you want it so the player is inside the sphere...)

...maybe one day I'll finish a project

Attachments

Login to view attachments
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Feb 2006 12:26
Turning cull on in the set object command will show the inside of a sphere as textured as well.

Set Object ObjectNumber,1,1,0 <<<< I think the third one is cull.

Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 5th Feb 2006 13:26
Just wanted to thank you guys... with a bit of pitchign and moving object etc. looks great... not sure how I can make the object much bigger, but if I move more slowly it gives the impression of a vast galaxy... thx
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Feb 2006 16:44
Move the galaxy with the ship, you will never reach the end.

Login to post a reply

Server time is: 2025-05-23 15:06:42
Your offset time is: 2025-05-23 15:06:42