Search found 28 matches

by egrath
Fri Sep 25, 2009 6:13 am
Forum: Beginners Help
Topic: Rotation Quaternions
Replies: 2
Views: 328

Hello,
convert the quaternion to euler angles and use them (quaternion::toEuler)
Egon
by egrath
Thu Sep 24, 2009 8:51 am
Forum: Code Snippets
Topic: Widget for embedding into Qt
Replies: 13
Views: 5033

Widget for embedding into Qt

Hello, for a project of mine i needed a fully fledged widget to integrate Irrlicht into a Qt Application. Currently the Widget features the following Compiles out of the Box with Qt 4.6 TP1 and Irrlicht SVN Emits signals for: Mouse Press/Release, Mouse move, Keyboard Press/Release (On Linux, disable...
by egrath
Wed Sep 02, 2009 10:54 am
Forum: Code Snippets
Topic: (C++) Free Camera Rotation around target
Replies: 2
Views: 6670

(C++) Free Camera Rotation around target

Hello, for a project of mine i've developed a simple camera system which can be rotated around a target point. I used the following approach: 1.) Imagine a sphere with a given radius around your target object 2.) According to the current Pitch/Yaw Angles, do the following: 2.1.) Calculate the positi...
by egrath
Fri Jul 24, 2009 7:59 pm
Forum: Advanced Help
Topic: MMORPG map format questions
Replies: 17
Views: 2486

Hello,

1.) Subtract the two position vectors to get the direction vector
2.) get the length of the direction vector
3.) if the length is greater than the radius, the point is outside your "visibility" circle, else it's in.

Egon
by egrath
Fri Jul 24, 2009 3:18 pm
Forum: Advanced Help
Topic: MMORPG map format questions
Replies: 17
Views: 2486

Hello, i can't directly answer your question, but maybe you can take a look at the Source for the Dawn of Light Server (which is a Freeshard Server for the commercial Dark Age of Camelot MMORPG). I think they already have solved questions like yours because their Project is very mature (stable since...
by egrath
Mon Jul 20, 2009 6:53 am
Forum: Bug reports
Topic: [driver bug] Material not passed to GLSL shader?
Replies: 4
Views: 710

Hello again, seems to me like it's a driver issue. I've just tested my posted example on a Windows Vista Host and the Shader works as expected... Egon [offtopic] God, i hate those buggy Linux Drivers. Why can't they (ATI|Nvidia) provide the same quality drives as they do for Windows? Don't they see ...
by egrath
Mon Jul 20, 2009 6:28 am
Forum: Bug reports
Topic: [driver bug] Material not passed to GLSL shader?
Replies: 4
Views: 710

Hello, maybe you can reproduce the problem with the following sample code which produces the problem: http://rapidshare.de/files/47896815/it10.tar.bz2.html I am using the following configuration: name of display: :0.0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: NVIDIA Corpo...
by egrath
Fri Jul 17, 2009 6:52 am
Forum: Bug reports
Topic: [driver bug] Material not passed to GLSL shader?
Replies: 4
Views: 710

[driver bug] Material not passed to GLSL shader?

Hello, i am currently playing around with Irrlicht and Shaders and got a little problem with my Materials. First of all i use the following shader to do simple Diffuse based Lighting: Vertex: void main() { vec3 normal, lightDir; vec4 diffuse; float NdotL; normal = normalize( gl_NormalMatrix * gl_Nor...
by egrath
Thu Jul 16, 2009 8:42 am
Forum: Code Snippets
Topic: Loading QShaderEdit Files in Irrlicht
Replies: 1
Views: 1088

Loading QShaderEdit Files in Irrlicht

Hello, i am using QShaderEdit to develop the GLSL Shaders needed in my application. The output format of this application is a mixture of the Vertex and Fragment Shaders and predefined Parameters used during the Shader Development. In Irrlicht you can either load pure Vertex/Fragment Shader Files or...
by egrath
Wed Jun 24, 2009 5:28 am
Forum: Code Snippets
Topic: Simple DDS loader
Replies: 10
Views: 3191

Hello,
the license for the entire library has been changed to ZLIB. Updated links are in the first post.
Egon
by egrath
Tue Jun 23, 2009 6:43 pm
Forum: Code Snippets
Topic: Simple DDS loader
Replies: 10
Views: 3191

Hello, i've contacted the author of the parts not written by me and he told me that he additionally releases his components (s3tc.c and s3tc.h) under the Terms of the ZLIB License for inclusion in Irrlicht. Tomorrow i will upload a new Release of the Library licensed under the terms of ZLIB at its e...
by egrath
Tue Jun 23, 2009 12:22 pm
Forum: Code Snippets
Topic: Simple DDS loader
Replies: 10
Views: 3191

Hello,
if LGPL is a problem i can implement the S3TC decoding from scratch and relicense under the zlib license. Just let me know.
Egon
by egrath
Tue Jun 23, 2009 8:15 am
Forum: Code Snippets
Topic: Simple DDS loader
Replies: 10
Views: 3191

Simple DDS loader

Hello, for a project of mine i needed the ability to load DDS Textures in Irrlicht. The result was a little and simple to use library which does: Load a DDS File and return a *IImage Supports DXT1/3 No dependencies to other libraries (except Irrlicht :-) The entire DXT decoding is based around FFmpe...
by egrath
Thu Jun 18, 2009 10:53 am
Forum: Project Announcements
Topic: New Tiled Terrain Scene Node [works with Irr 1.5]
Replies: 338
Views: 113494

Hello, in File ShTlTerrainSceneNode.cpp on line 194: CTexture = driver->addTexture(core::dimension2d<s32>(tw, th), "colortexture", video::ECF_A8R8G8B8); has to be replaced with: CTexture = driver->addTexture(core::dimension2d<u32>(tw, th), "colortexture", video::ECF_A8R8G8B8); (u...
by egrath
Mon Jun 15, 2009 2:24 pm
Forum: Beginners Help
Topic: Problem with Directional Light
Replies: 0
Views: 518

Problem with Directional Light

Hello, i have a little problem regarding the Lighting of a custom scene node: 1.) The Scene Node in Question represents a Terrain 2.) Lighting is achieved using a single Directional light. The problem is that only parts of the scene are lit. Take a look at the following image: http://img510.imagesha...