Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,103 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sprite bmap problems #41061
02/14/05 12:35
02/14/05 12:35
Joined: May 2002
Posts: 757
NY, USA
GhostDude Offline OP
Developer
GhostDude  Offline OP
Developer

Joined: May 2002
Posts: 757
NY, USA
I'm having a weird problem when modifying the bmap of a sprite in my game. I wanted to make a ring sprite that appears around a ship when it is selected. I created a function that edits the bmap of the ring so that it is the same color as the team's color (ie, orange team, green team, etc). This works great, unless i view the sprite from a far distance or at an angle that is not perpendicular to its surface. At times like this, the new bmap begins to fade out and the sprite's old bmap fades back in.

To show this better, my sprite is black with a blue X on it. When a ship is selected, the bmap is completelly written over by black with an orange ring:
http://img68.exs.cx/my.php?loc=img68&image=shotring3nr.png
This works great. However, if the sprite is far away and at an angle, the ring disapears and the X comes back:
http://img162.exs.cx/my.php?loc=img162&image=shotx4px.png

What is going on here?

3DGS version 6.3 Pro


Lead Programmer of Realspawn Productions AIM: gh0s7mp630 MSN: [Email]"mpratt630@hotmail.com"[/Email]
Re: Sprite bmap problems [Re: GhostDude] #41062
02/14/05 16:13
02/14/05 16:13
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
Maybe you called your sprites
ring_0.bmp
ring_1.bmp
ring_3.bmp

to reflect the different teams?
In this case the LOD effect would automagically change your sprites if you see the object from a larger distance.

-- slacer

Re: Sprite bmap problems [Re: slacer] #41063
02/14/05 19:37
02/14/05 19:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Another possible reason is that you've activated mipmapping for sprites. In that case, after altering a sprite bitmap, you have to call bmap_to_mipmap for updating the mipmap chain.

Re: Sprite bmap problems [Re: jcl] #41064
02/15/05 10:52
02/15/05 10:52
Joined: May 2002
Posts: 757
NY, USA
GhostDude Offline OP
Developer
GhostDude  Offline OP
Developer

Joined: May 2002
Posts: 757
NY, USA
Yes, it was mip-maps. Thank you


Lead Programmer of Realspawn Productions AIM: gh0s7mp630 MSN: [Email]"mpratt630@hotmail.com"[/Email]

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1