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 Professional Discussion / Obsolete Commands

Author
Message
No Sanity!
23
Years of Service
User Offline
Joined: 10th Dec 2002
Location: United Kingdom
Posted: 19th May 2003 19:03
In DBpro when i complie it keeps telling me the texture backdrop commands is obsolete and to use skybox's so can some one explain to me how to either disable that warning or do skybox's without 3D modeling something. Also when I try to do a sky box and tile the texture using "set object texture 1,0,1" it only drwas half the stuf, reports the frame rate at 22 (oposed to 65) and makes the screen flicker like mad. Ideas plz.
Beta1
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 19th May 2003 19:08
OK to make a 3D sky box without making a model simply make a sphere using the MAKE SPHERE command, texture it with a sky texture (you may need to use scale texture to get it to fit right) then position it at the camera position. However because your inside the sphere and the sphere is facing outwards you have to reverse the direction that the spheres polygons are facing (you can do this by doing scale object N,-1,-1,-1 I think) or turning off the culling on the object using the flag in SET OBJECT.

As to the texture problem I cant help. The flickering and fps hit sounds like a sync problem, post your source and I'll try and figure it out.

The Wendigo
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 20th May 2003 00:00
Beta1's suggestion will definetely work, but I highly feel you should learn how to make skyboxes. skyboxes are better than skyspheres since they use far less polygons. I have a tutorial, but I haven't posted it on my site yet. BUT ILL GET THERE!

Current Projects: mini BSP maker 50%, Height Mapper with many features 75%, FPS/RTT Nameless at the moment 15%
Kentaree
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 20th May 2003 00:21
Skybox are like skypsheres, you just create an inside-out box using
make object box, and then you texture it. This is more easily done if you make an inside-out box in a 3d modeller, then making an uv map with something like UnWrap3D so all the plains are properly textured and UV-mapped, and then loading it into DBPro, scaling it if necessary.

Whatever I did I didn't do it!
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 20th May 2003 01:38
I have an obsolete command to add to this,

Is there anyway to do it? I'm not particularly bothered, however it is in the DarkBASIC book that is out, and I check the DBPro source code section on the CD and it didn't even have the program I was writing from the book.

I hear and I forget. I see and I remember. I do and I understand.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th May 2003 02:08
save bitmap code attached - 32-bit bitmaps only

You don't need to scale your spheres or boxes to get them to render - just give them a negative size and they'll automatically be inside-out, and rendered normally by DBPro.

No Sanity: If you are using skyspheres or skyboxes, it's best to do a BACKDROP OFF command - otherwise DBPro wastes time clearing the display before drawing anything, including your sphere/box. Also, make sure that you're not doing a CLS inside your loop.
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 20th May 2003 02:51
Thanks once again Ian.

I hear and I forget. I see and I remember. I do and I understand.
UberTuba
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 20th May 2003 21:35
Ghost Matrix on !!!!
takes no account of any thing other than the background colour. No objects or oher matrixes can beseen through it. Unless there is a way around this then the command's pretty pointless

Life is a terminal disease.
You never survive it.
No Sanity!
23
Years of Service
User Offline
Joined: 10th Dec 2002
Location: United Kingdom
Posted: 23rd May 2003 14:04
Thanx guys i'll try this when i get my computer up and running again. I'll probably end up doing a skybox\sphere in a modeling program eventualy but i'llget it working using DBpro commands first.

Login to post a reply

Server time is: 2026-07-11 13:57:29
Your offset time is: 2026-07-11 13:57:29