Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ShadowDancer

Pages: [1]
1
Graphics / Scaled Tiles
« on: January 01, 2010, 03:31:55 pm »
What will be best way to solve my problem? I tried

Code: [Select]

float Scale = Tileset.GetHeight() * 1.0f /Field_Size ;
sf::IntRect Rect((Element_Type*Tileset.GetHeight()) * Scale, 0, (Tileset.GetHeight()) * Scale, (Tileset.GetHeight())*Scale);
Tileset_Sprite.SetScale(Scale,Scale);Tileset_Sprite.SetSubRect(Rect);Tileset_Sprite.SetPosition(Field_Pos_X, Field_Pos_Y);
Render->Draw(Tileset_Sprite);


But it don't works.

Maybe is possible to make sprite from part of another sprite, but I don't found it. Any suggestions?

2
Graphics / Thin Shapes + views
« on: December 12, 2009, 12:27:59 pm »
I have problem with it. Example if i make square with 1 outlining, and next zoom view some edges dissapears. Is possible to fix it?

3
Audio / Sounds not playing
« on: November 16, 2009, 10:02:01 pm »
I have problem with playing sounds. Sometimes sound not playing but it have good buffer and Play() is called. I have menu class that contains sf::Sound and global SoundBuffer. Menu is maked like tree, sounds work in 1st lvl, but in lower not. Setting new sound instance manually and using Play() works only on 1st lvl of menu(or main function), in lower not. When i get up from menu sounds are played normaly.

I am sure, that buffer are not changed after entering menu(find al references). Can someone help? Here is limit of instances that can use one buffer, or smthing?

4
Graphics / Masked Color?
« on: October 24, 2009, 04:52:19 pm »
What will be color of masked image?
I have image as button, and i want to decect when user click, but image have some masked parts. I tried with GetPixel, but it return hmm impossible values(at start it's 3,0,3,0. and r and b values increasing over time). Anyway to solve it?

5
Window / Input with winapi?
« on: October 24, 2009, 02:06:15 pm »
I have question:
Is possible to take mouse input via render window, when i'm using Winapi?
I'm currently doing it like this:
Code: [Select]

sprintf( Buffer, " MouseX: %d MouseY: %d", Render->GetInput().GetMouseX(), Render->GetInput().GetMouseY() );


And MouseX/Y is 0. Winapi changes smthing? I should take mouse from view or what?

6
Graphics / Rendring to image?
« on: October 12, 2009, 11:10:36 pm »
Can i do something like render to texture in opengl?

I want render ex. blood on backround image and later display it. Is it possible?

I looked on render window, but it can render to view, but not to image. Is anyway here?

7
Graphics / Masking sprites.
« on: September 15, 2009, 11:18:37 pm »
As topic, here is something like that? I really must use blending?

Pages: [1]