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 / dbp sprites are breaking my heart :-S

Author
Message
Newbieone
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location:
Posted: 25th Mar 2005 06:44
Hi all, didn't know where to put this post (no suggesions forum )

Well, i got a problem with sprites :
with "draw sprites fist/last" and "backdrop on/off" i can do all combaisons exept the only one i need : 3d scene first(background), then sprites, and finaly 2d (bitmap/image).

I would like to do this cause 3d sprites/plains are much faster than 2d stuff with a gamer's graphic card... (but i still need bitmaps to be drawn at last cause i can modify them faster with memory access)

I thought do that with 3d plains but :
1) i haven t the knowledge to draw plains with no 3d perspective
2) I'm making a graphic interface and i thought letting some space between 1st windows-plain and last one to repect each windowses priority (like 0.01 to 0.011 distance from camera, camera minimal range set to 0,01) But by the way all others 3d object could be partially drawn on front of windows...

For now i use sprites hiden and with "paste sprite" but it looks drawn as same as conventionnal images (no more fps gain on my computer )


Is it possible to see new commands in futur patches to completely set sprites draw priority like : "draw sprites before/after 3d" AND "draw sprites before/after 2d" ?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Mar 2005 07:15
I very much doubt it, 'cos in DX 9, sprites are 3D graphics - with one plain.

Visit http://homepages.nildram.co.uk/~nickk/
Questions are a burden to others, answers a prison for oneself.
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 25th Mar 2005 07:19
try 'set sprite priority'
Newbieone
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location:
Posted: 25th Mar 2005 09:41
ARG i did a mistake in my test (testing with my main project was not a good idea :-p) in fact paste sprite is as fast as "original" sprite (or negligeable difference).
So they is no more problem, paste sprite does what i need faster than i thought...

But the error was from backdrop desactiveted in part of code and not in other (that s why i've found a fps difference)... but nothing exteriory seeable, no graphic difference...

In fact i just saw backdrop was completly useless when a sprite is created (even if it's hide)
It's necessary to desactivate it to see sprites when they're are drawn 1st, but it's still good if they're drawn at last.
Result : around 2-3% fps constantly gained with backdrop off in a program witch uses dbp sprites

re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 30th Mar 2005 09:16
i always lose fps when the backdrop is off, espescially when viewing long distances
BF game programmer
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: hoover alabama
Posted: 30th Mar 2005 09:51
i have a suggesteon for your name Newbieone how about
Newbieone kaNewbie just a funny thought!

james bond rules

Login to post a reply

Server time is: 2025-06-02 13:44:39
Your offset time is: 2025-06-02 13:44:39