Search found 288 matches

by Alpha Omega
Wed Mar 18, 2015 11:23 am
Forum: Everything 2d/3d Graphics
Topic: Min() - Easy OpenGL 3.2+ Game Engine Project
Replies: 2
Views: 2488

Min() - Easy OpenGL 3.2+ Game Engine Project

Hey guys. This is a shoot out to all the Irrlicht noobs in the world. I was inspired by Irrlicht for a very long time, about seven years ago I wrote my first Hello World C++ program using Irrlicht. Irrlicht was fun to play with and try to learn graphics programming. However, I felt like in some ways...
by Alpha Omega
Wed Sep 24, 2014 4:42 pm
Forum: Off-topic
Topic: Loss of Creatvity: Projects are Lacking
Replies: 1
Views: 1450

Loss of Creatvity: Projects are Lacking

I'm 26 and I first started learning Irrlicht in 2008. I learned C++ to use Irrlicht when studying in university and made some "hacker" style applications, nothing serious. My newly developed C++ skills allowed me to take a job straight out of university working in databases for about 9 mon...
by Alpha Omega
Mon Sep 09, 2013 4:16 pm
Forum: Everything 2d/3d Graphics
Topic: OpenGL FPS Camera
Replies: 1
Views: 1720

Re: OpenGL FPS Camera

Lesson learned: always make sure your matrix methods use column major multiplication for OpenGL :). That took too much time to find :P.
by Alpha Omega
Mon Sep 09, 2013 1:32 am
Forum: Everything 2d/3d Graphics
Topic: OpenGL FPS Camera
Replies: 1
Views: 1720

OpenGL FPS Camera

I am trying to make a FPS camera class that works well with Irrlicht and uses a ton of OGL4.0 calls using shaders. The class is based off Quaternion rotation and I simple transform the normalized view direction by the axis and angle. I got it working except for one thing that I can't understand. Whe...
by Alpha Omega
Sat Apr 27, 2013 6:46 pm
Forum: Everything 2d/3d Graphics
Topic: Mouse Selection Sorting
Replies: 4
Views: 1589

Re: Mouse Selection Sorting

I am going to use this because it has a built in sort method that always returns the first intersection so no sorting is needed. It is easier to digest in my opinion.

http://diglib.eg.org/EG/DL/WS/EGGH/EGGH89/061-073.pdf
by Alpha Omega
Wed Apr 24, 2013 11:29 pm
Forum: Everything 2d/3d Graphics
Topic: Mouse Selection Sorting
Replies: 4
Views: 1589

Re: Mouse Selection Sorting

Based on my research k-dr trees seem more efficient for this kind of thing.
by Alpha Omega
Wed Apr 24, 2013 2:48 am
Forum: Everything 2d/3d Graphics
Topic: Mouse Selection Sorting
Replies: 4
Views: 1589

Mouse Selection Sorting

I am thinking of an algorithm to detect when an user selects an object with the mouse. 1. Using an AABB Octree store all objects, objects contain triangles, and triangles contain points. 2. Fire a ray from the camera to the mouse location, convert screen coords to a 3D ray. 3. Traverse the Octree, t...
by Alpha Omega
Sun Apr 14, 2013 3:28 pm
Forum: Everything 2d/3d Graphics
Topic: OpenGL question
Replies: 3
Views: 1191

Re: OpenGL question

Thanks Mel! However before I embark on this path I might also ask if this method would be equally as fast as using OpenCL to do the array processing instead of OpenGL. I have a portion of code I think will run much faster on the gpu than the cpu and its not directly related to graphics. Would having...
by Alpha Omega
Sun Apr 14, 2013 2:24 am
Forum: Everything 2d/3d Graphics
Topic: OpenGL question
Replies: 3
Views: 1191

OpenGL question

When you create a VBO with OpenGL and buffer vertex data to the graphics card via glBufferData(), is it possible to then buffer the data off the card after applying a shader? I basically want to use OpenGL shaders to run array processing. Therefore I need input and output. I am aware that you can de...
by Alpha Omega
Sat Dec 01, 2012 8:57 pm
Forum: Game Programming
Topic: Fastest LN(X) Implementation: What do compilers use?
Replies: 3
Views: 3914

Re: Fastest LN(X) Implementation: What do compilers use?

The gcc compiler use a Taylor series approximation for a number in between 1/sqrt(2) and sqrt(2) using an argument reduction formula. For 53 bits it looks like they truncate it at about 6 summations which surprised me. I guess the AGM method is for bits >> 53 like 1000 bit precision etc.
by Alpha Omega
Sat Dec 01, 2012 2:27 pm
Forum: Game Programming
Topic: Fastest LN(X) Implementation: What do compilers use?
Replies: 3
Views: 3914

Fastest LN(X) Implementation: What do compilers use?

Hey guys, I have been doing some work with elementary functions and wanted to increase the speed of ln(x) and exp(x). I believe most compilers do not take full advantage of the cpu and thus I am writing my own. However before I can optimize I need an algorithm that shows promise. I tried an implemen...
by Alpha Omega
Wed May 02, 2012 3:57 pm
Forum: Off-topic
Topic: Code Blocks IDE and Linking ASM
Replies: 7
Views: 3695

Re: Code Blocks IDE and Linking ASM

I switch to VS 2010 C++ and I just add the .obj files in the linker section and it works! I forgot extern "C" though lol. I think my C::B setup at work is not setup right because there was already a GCC compiler on this machine and although I can get a simple hello world to build I can not...
by Alpha Omega
Wed May 02, 2012 2:42 pm
Forum: Off-topic
Topic: Code Blocks IDE and Linking ASM
Replies: 7
Views: 3695

Re: Code Blocks IDE and Linking ASM

Mel, I am a little confused on what your advice is. Maybe I can clarify. I have my .asm files, I run nasm assembler on them to get .obj files. Now I could make these .obj files into a .lib and then link with C::B which should work but I dont know how to make a .lib! I have done this before inside co...
by Alpha Omega
Wed May 02, 2012 1:31 pm
Forum: Off-topic
Topic: Code Blocks IDE and Linking ASM
Replies: 7
Views: 3695

Code Blocks IDE and Linking ASM

Hello everyone, I am curious if there is a way of linking compiled object files inside the Code Blocks IDE? For example, I have written some low level I/O functions in assembler and have compiled it with NASM assembler. I have the win32 .obj (I am compiling on windows), is there a way to link this w...
by Alpha Omega
Sat Jan 21, 2012 2:09 am
Forum: Off-topic
Topic: US seizes Megaupload
Replies: 7
Views: 1369

US seizes Megaupload

So the US government never needed SOPA/PIPA because they shut down megaupload yesterday. Anyone have any project files on there? They actually seized the company in the Netherlands! Federal crimes? Yea right.