Search found 59 matches
- Thu Jun 14, 2012 11:24 am
- Forum: Programming Discussion
- Topic: How to fix OpenGL Co-ordinate System in SFML?
- Replies: 1
- Views: 1407
How to fix OpenGL Co-ordinate System in SFML?
My OpenGL setup is somehow configured to work like so: (-1, 1) (0, 1) (1, 1) (-1, 0) (0, 0) (1, 0) (-1, -1) (0, -1) (1, -1) How do I configure it so that it works like so: (0, 0) (SW/2, 0) (SW, 0) (0, SH/2) (SW/2, SH/2) (SW, SH/2) (0, SH) (SW/2, SH) (SW/2, SH) SW as Screen Width. SH as Screen Height...
- Thu Jun 07, 2012 4:23 am
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Re: Direct3D 9 World Matrix Transformation --NOT WORKING
Sooooo? What do you mean? As in, how do I fix it? Lol. :3qpHalcy0n wrote:Good, that means its working. Your transform is not correct ;]
- Wed Jun 06, 2012 7:14 pm
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Re: Direct3D 9 World Matrix Transformation --NOT WORKING
Now it's just not rendering the shape.qpHalcy0n wrote:Oh, I didn't notice this before.
D3DFVF_XYZRHW indicates a vertex that is already transformed, so it should not be affected by the transformation pipeline.
You should change this to D3DFVF_XYZ, as it is not yet transformed.
- Wed Jun 06, 2012 7:05 pm
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Re: Direct3D 9 World Matrix Transformation --NOT WORKING
Ooh...should that fix it?qpHalcy0n wrote:Oh, I didn't notice this before.
D3DFVF_XYZRHW indicates a vertex that is already transformed, so it should not be affected by the transformation pipeline.
You should change this to D3DFVF_XYZ, as it is not yet transformed.
- Wed Jun 06, 2012 9:33 am
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Re: Direct3D 9 World Matrix Transformation --NOT WORKING
Heh. xDlalacomun wrote:Really, not working! and you were planning to do a tutorial about it !!?? LOL
Doing several on using OpenGL for 2D graphics later, Martin.
- Tue Jun 05, 2012 2:45 pm
- Forum: Game Development
- Topic: loading a .bmp file into SDL
- Replies: 44
- Views: 12198
Re: loading a .bmp file into SDL
Dude...the button to the right of the 'Quote' one, clearly says 'Code'. Ah well. :3azaron08 wrote:sorry i didnt know how....
- Tue Jun 05, 2012 2:17 pm
- Forum: Game Development
- Topic: loading a .bmp file into SDL
- Replies: 44
- Views: 12198
Re: loading a .bmp file into SDL
it doesnt look like any thing is wrong with the code!! u tell me!! i cant figure it out.....it will pull up a white screen but no image: #include <SDL.h> #include <string> #include <iostream> using namespace std; int main( int argc,char* args[] ) { //initilization,setup screen,running screen SDL_In...
- Tue Jun 05, 2012 1:57 pm
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Re: Direct3D 9 World Matrix Transformation --NOT WORKING
No, you've loaded a translation matrix. Those D3DX functions simply load a matrix into the array. D3DXMatrixRotationZ(&matWorld, rotAngle); // Load a Z-rotation matrix into "matWorld" D3DXMatrixTranslation(&matWorld, x, y, z); // Load a translation matrix into "matWorld"...
- Tue Jun 05, 2012 12:53 pm
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Re: Direct3D 9 World Matrix Transformation --NOT WORKING
Here you're not actually rotating, just translating. I suspect it may actually be translating, but its a static translation and may not be sufficiently large to see. Those D3DX functions load a matrix into the array there. They don't actually concatenate them. You must concatenate the matrices. Ope...
- Tue Jun 05, 2012 9:13 am
- Forum: Programming Discussion
- Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
- Replies: 12
- Views: 4207
Direct3D 9 World Matrix Transformation --NOT WORKING
Hey guys, I'm teaching my self Direct3D and I've got some code rendering a triangle, of which I somewhat understand. I've added code which should rotate the world matrix by 45 degrees and translate by yay-amount. Instead it just renders the pretty triangle, but with none of the transformations appli...
- Fri May 25, 2012 1:41 am
- Forum: Art, Music, and Design
- Topic: My first Painting
- Replies: 11
- Views: 13903
Re: My first Painting
Cool story bro. :3 Care to share the actual painting?neha46101 wrote:Hello friends .
I made my first painting ..when I am in 9th ....and in drawing competition I was win .because my drawing is good .......
- Fri May 18, 2012 1:54 am
- Forum: Programming Discussion
- Topic: Lua Binding Won't Compile with G++ --HELP!
- Replies: 15
- Views: 4480
Re: Lua Binding Won't Compile with G++ --HELP!
Glad to help. The .hpp file works on c and c++. Actually, it's just a wrapper, like the c* file from the c++ standard library (cstring, stype, cstdio, etc). You can check its contents. On my system: bruno@bruno-notebook:~$ cat /usr/include/lua5.2/lua.hpp // lua.hpp // Lua header files for C++ // <<...
- Mon May 14, 2012 9:49 am
- Forum: Programming Discussion
- Topic: Lua Binding Won't Compile with G++ --HELP!
- Replies: 15
- Views: 4480
Re: Lua Binding Won't Compile with G++ --HELP!
GENIUS!!! <3bbguimaraes wrote:Are you including lua.h instead of lua.hpp?
- Sun May 13, 2012 5:46 am
- Forum: Programming Discussion
- Topic: AI tutorial?
- Replies: 2
- Views: 1311
Re: AI tutorial?
Does anyone know any tutorial that's about how to program a AI in c++ and sdl? You might want to check out A* Pathfinding: http://en.wikipedia.org/wiki/A*_search_algorithm There's loads of pathfinding tutorials on YouTube. In future :google: . If pathfinding is not what you seek, then it's just com...
- Sat May 12, 2012 4:26 pm
- Forum: Programming Discussion
- Topic: Falco: What version of VC++ do you use?
- Replies: 4
- Views: 2257
Re: Falco: What version of VC++ do you use?
Thanks. Do you have an opinion on the new 2011 beta release? Or do you hate the new 'metro' regime as much as most of us.Falco Girgis wrote:2010.