Archived

This topic is now archived and is closed to further replies.

a puzzling problem with sprites

This topic is 5885 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I am using two polygons and texturing it with a bmp i created in photoshop. When I load it in my program though the detail completely goes and it looks terrible. The original is http://www.maidenfans.com/splash2.jpg and in my program it looks like this: http://www.maidenfans.com/splash.jpg This might be a difficult question to answer with just these details so if you need any more info just ask. I'm really puzzled because its not being scaled at all Cheers Dave Planetblaze.com - www.planetblaze.com - As METAL as it gets! [edited by - Real World on September 9, 2002 6:04:42 PM]

Share on other sites
Try to resize the original image to a multiple of 64 (like 512x512 or 256x256)

This may help...

Share on other sites
tried that it made it look worse :S

Share on other sites
What is the original 16bit, 32bit, 24bit??

Share on other sites
Oh sorry, forgot to mention its DirectX 8.1 What should I be looking for if thats the case as most of that type of code I''ve got from tutorials.
And Blaze has lost a lot of weight since he left Maiden

Share on other sites
	if(FAILED(m_pD3DDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,  TRUE)))	{		LogError("SetRenderState: D3DRS_ALPHABLENDENABLE Failed");		return false;	}	else	{		//Set how the texture should be blended (use alpha)		m_pD3DDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);		m_pD3DDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);		LogInfo("SetRenderState: D3DRS_ALPHABLENDENABLE OK");	}

Thats the only renderstate I have in there thats active. I don''t THINK theres any filtering. I tried adding some and it 1/4 the frame rate so i took it off.

Share on other sites
Some RenderStates are On automaticly.

1. 1
Rutin
33
2. 2
3. 3
4. 4
5. 5

• 11
• 13
• 86
• 11
• 10
• Forum Statistics

• Total Topics
632972
• Total Posts
3009609
• Who's Online (See full list)

There are no registered users currently online

×