Search found 59 matches

by OmenFelix
Thu Jun 14, 2012 11:24 am
Forum: Programming Discussion
Topic: How to fix OpenGL Co-ordinate System in SFML?
Replies: 1
Views: 1098

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...
by OmenFelix
Thu Jun 07, 2012 4:23 am
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

Re: Direct3D 9 World Matrix Transformation --NOT WORKING

qpHalcy0n wrote:Good, that means its working. Your transform is not correct ;]
Sooooo? What do you mean? As in, how do I fix it? Lol. :3
by OmenFelix
Wed Jun 06, 2012 7:14 pm
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

Re: Direct3D 9 World Matrix Transformation --NOT WORKING

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.
Now it's just not rendering the shape.
by OmenFelix
Wed Jun 06, 2012 7:05 pm
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

Re: Direct3D 9 World Matrix Transformation --NOT WORKING

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.
Ooh...should that fix it?
by OmenFelix
Wed Jun 06, 2012 9:33 am
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

Re: Direct3D 9 World Matrix Transformation --NOT WORKING

lalacomun wrote:Really, not working! and you were planning to do a tutorial about it !!?? :nono: LOL
Heh. xD

Doing several on using OpenGL for 2D graphics later, Martin. ;)
by OmenFelix
Tue Jun 05, 2012 2:45 pm
Forum: Game Development
Topic: loading a .bmp file into SDL
Replies: 44
Views: 9297

Re: loading a .bmp file into SDL

azaron08 wrote:sorry i didnt know how.... :oops:
Dude...the button to the right of the 'Quote' one, clearly says 'Code'. Ah well. :3
by OmenFelix
Tue Jun 05, 2012 2:17 pm
Forum: Game Development
Topic: loading a .bmp file into SDL
Replies: 44
Views: 9297

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...
by OmenFelix
Tue Jun 05, 2012 1:57 pm
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

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"...
by OmenFelix
Tue Jun 05, 2012 12:53 pm
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

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...
by OmenFelix
Tue Jun 05, 2012 9:13 am
Forum: Programming Discussion
Topic: Direct3D 9 World Matrix Transformation --NOT WORKING
Replies: 12
Views: 3107

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...
by OmenFelix
Fri May 25, 2012 1:41 am
Forum: Art, Music, and Design
Topic: My first Painting
Replies: 11
Views: 11733

Re: My first 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 ....... :)
Cool story bro. :3 Care to share the actual painting? ;)
by OmenFelix
Fri May 18, 2012 1:54 am
Forum: Programming Discussion
Topic: Lua Binding Won't Compile with G++ --HELP!
Replies: 15
Views: 3458

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++ // <<...
by OmenFelix
Mon May 14, 2012 9:49 am
Forum: Programming Discussion
Topic: Lua Binding Won't Compile with G++ --HELP!
Replies: 15
Views: 3458

Re: Lua Binding Won't Compile with G++ --HELP!

bbguimaraes wrote:Are you including lua.h instead of lua.hpp?
GENIUS!!! <3 :worship:
by OmenFelix
Sun May 13, 2012 5:46 am
Forum: Programming Discussion
Topic: AI tutorial?
Replies: 2
Views: 917

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...
by OmenFelix
Sat May 12, 2012 4:26 pm
Forum: Programming Discussion
Topic: Falco: What version of VC++ do you use?
Replies: 4
Views: 1604

Re: Falco: What version of VC++ do you use?

Falco Girgis wrote:2010.
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. ;)