Render #Sprite2D to #Sprite2D?

Advanced game related topics
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

most computer now a days if you have a nvida card it has 2X the power of the fastest PENT3/4 or Athlon doing it in you video card should be much faster. when you ran the 3DSnow what it fast if it was pretty fast you prolly have a good video card make sure you directX is up to date
that 3DSnow has 20,000 snow flakes being updated every frame and the logo that zooms in and out plus a snow blower that blows snow
how meny graphics are trying to do at once it can't be more than that program?


Sean
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Soulfire is correct about the ClearScreen, the docs state it must be in between the FX commands if you are using any FX commands. I am still not able to use the 3D Fx due to it being Windows only, and Im coding for multiple platforms.

I went through the tutorials, they look great, but no help for zooming/unzooming.

That 3DSnow is quite an awesome use of the desktop :)

Maybe I used the wrong wording. I need to be able to resize my 2DSprite (I guess some call it zoom, but zoom is a ratio not freeform resizing). And what I need must not be platform specific, aka no API calls and no Windows only commands.
Last edited by Shannara on Fri Mar 12, 2004 12:11 am, edited 1 time in total.
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

more importantly are your graphics BMP if so convert them to PNG
that might also help out a bit.


Sean
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

The 2D commands use DirectX for windows, directx will take all image formats and convert them to BMP in memory for DX's internal USE. The only reason I see to use any other format then BMP, is the case where I want to save hard drive space :) .... actually, that is not a bad idea :)
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

if you can zip them up and give me a link to them i can check it out for ya
it maybe something silly you are just overlooking cause you have been staring at it for way too long that happens to me often sometimes i just need to take a break...


Sean
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

the load speed also PNG is much smaller loads faster and look as good if not better than BMP


Sean
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Im not going to make a comment about your comparisons of PNG to BMP,.... :P

Anyways, the only thing I need to do is resize a Sprite using multiplatform code. Unfortunately Fred said they he will probably not create a Sprite3D command for linux ( viewtopic.php?t=6931&highlight=sprite3d ), Someone else said thats because DirectX for windows have "native" sprite commands for such.. OpenGL for Linux solves this problem ;)

anyways, that is all I need, some resizing..
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

hay i have to sleep now it catching up to me bad. if you want me to check out your program send me a link
goto www.3dcurrman.com and click the e-mail Dcurrier@3dcurrman.com
link
good luck and see ya later :lol:


Sean
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

glad to hear it's working for you now

Bye Bye

Sean
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

what's working for me? Im still looking for a resizing code for a sprite :) Anyways, sleep tight.
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

Shannara wrote:what's working for me? Im still looking for a resizing code for a sprite :) Anyways, sleep tight.
are you a coder or a housewife ?
you can get the adress of the sprite in memory, so do a bit of Peek/Poke on the buffer to create a new sprite with you needed dimension. Can not been too difficult. just my 2 cents on such discussions here
SPAMINATOR NR.1
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> the load speed also PNG is much smaller loads faster and look as good if
> not better than BMP

They'd be equal -- a PNG can't look better than a BMP if they came
from the same original source. What have you been drinking? ;)
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

DriakTravo wrote:

Code: Select all

download this and tell me if it's slow 

it has 20,000 snow flakes and a translucent logo 

http://www.3dcurrman.com/3DSnow.zip 
This progam gave me absolutly no lag at all, but for some reason, they all have a pink background, why?

I think it may be your graphics card. the pink is the transparent color
Haplo
User
User
Posts: 25
Joined: Tue Jun 08, 2004 8:45 pm

Post by Haplo »

I tried the snow download and it crashed my computer (first crash in over 6 months)

WinXp
512 MB
Geforce FX5900XT 128MB
P4 2.53

did anyone else have a problem?
-----

If a man is standing in the middle of the forest speaking, and there is no woman around to hear him, is he still wrong?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

shanarra, if you need *realtime* resizing it's bound to be a little slow, but if it's not real time, or not much else is going on on screen, you might be able to use the onboard windows plgblt_() function...

for non-windows, the quickest way is to resize the image non-real time, ie. before it is used at all, a neat trick is create all variations of an image while displaying a level intro etc.

then again, i haven't got a clue of what you are trying to accomplish :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply