Search found 60 matches

by radubolovan
Wed Jun 18, 2008 3:32 pm
Forum: Beginners Help
Topic: IGUIWindow adding additional element problem
Replies: 2
Views: 361

rect<s32> doesn't have x, y, sizeX, sizeY ... it has x1, y1, x2, y2 ... so try:

Code: Select all

env->addButton(rect<s32>(35, 35, 100, 50),...);
env->addButton(rect<s32>(35, 100, 100, 115),...);
by radubolovan
Thu Jun 05, 2008 12:02 pm
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

... no lights are going to be added in this design, though. it's mostly about shaders and its relation to a material.....
You can export any variables to shader ... any lights variables or ... anything...
example:
scene::ILightSceneNode* l1 = smgr->addLightSceneNode( ... );
video::SLight ld = l1 ...
by radubolovan
Tue Jun 03, 2008 7:08 pm
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

Hello dlangdev ... I intend to do that (a shader editor), but before ... I want to add some kind of templates ... Something like writting in a file or more many functions as applyLights() for example, then in other file write "include_file.tsh" (sht = shader template) and simply applyLights() ... it ...
by radubolovan
Mon Jun 02, 2008 7:48 pm
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

Instead of setting the default to PS 1.1, and VS 1.1, what I like to do is query the maximum supported shader model using driver->queryFeature() and use that instead, it's a good idea to compile for the highest supported shader model even on shaders that fall well below the instruction limit for ...
by radubolovan
Sat May 31, 2008 10:47 am
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

Usage
Initialisations g_pShaderManager = new ShaderManager();
g_pShaderManager->init( "data_directory", driver ); destroying delete g_pShaderManager; Using int nShader = g_pShaderManager->loadShader( "my_shader", "path_to_vertex_shader_inside_data_directory", "path_to_fragment_shader_inside_data ...
by radubolovan
Sat May 31, 2008 10:34 am
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

dswshader.cpp /***************************************************************************
* Copyright (C) 2007-2008 by Radu Dumitru Bolovan *
* radubolovan@darkstarlinux.ro *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General ...
by radubolovan
Sat May 31, 2008 10:29 am
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

dswshader.h
/***************************************************************************
* Copyright (C) 2007-2008 by Radu Dumitru Bolovan *
* radubolovan@darkstarlinux.ro *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General ...
by radubolovan
Sat May 31, 2008 10:23 am
Forum: Code Snippets
Topic: Shaders manager & co
Replies: 9
Views: 3902

Shaders manager & co

Hello again :)
I've made some structures and classes for managing shaders.
I have no where to upload a demo so here is the code in the next posts.

Enjoy :)
by radubolovan
Fri May 30, 2008 7:43 pm
Forum: Code Snippets
Topic: Background loading within another thread on Linux using POSIX
Replies: 11
Views: 4614

I've founnd that this problem is occurred when the wndow lose focus ;) so ...
in .h: bool m_bTryToCreateNewContext; in .cpp:
in constructor: m_bTryToCreateNewContext = false; in createNewContext() function: if( Context2 != 0 )
{
GLXContext cntx;
return cntx;
}

m_bTryToCreateNewContext = true ...
by radubolovan
Fri May 30, 2008 10:21 am
Forum: Project Announcements
Topic: IRR|Cinema studio: some water for the thirsty
Replies: 107
Views: 60291

Re: IRR|Cinema studio: some water for the thirsty

This is very nice.
Coming soon this is a project which most of the code is ready but needs cleaning up and sorted in classes

It is basically a set of classes that enable cinematic like rendering see the following:

-HDR rendering
-motion blur on camera velocity
-scope effect
-focus on certain ...
by radubolovan
Fri May 30, 2008 10:16 am
Forum: Code Snippets
Topic: Background loading within another thread on Linux using POSIX
Replies: 11
Views: 4614

This is still happening :(
The problem is that the window doesn't recieve an event ... I will see if can be resolved... maybe I should define the event.
Keep in touch.
by radubolovan
Thu May 29, 2008 10:38 pm
Forum: Code Snippets
Topic: Background loading within another thread on Linux using POSIX
Replies: 11
Views: 4614

I've found if the window doesn't recieve an event (from mouse or keyboard), the next line was not executed: Context2 = glXCreateNewContext( display, *configList, GLX_RGBA_TYPE, Context, True );
so the next code should resolve this problem;
GLXContext const& CIrrDeviceLinux::createNewContext ...
by radubolovan
Tue May 13, 2008 8:12 pm
Forum: Bug reports
Topic: "picking" an 3D object from a mouse click
Replies: 4
Views: 1749

I copied and pasted your code and runed it.
1) I use Linux & OpenGL so I made this change: IrrlichtDevice* device = createDevice( video::EDT_OPENGL, core::dimension2d<s32>(1024, 768));
2) I can't see any mesh :( although it's loading!!!


anyway ... I have found a solution for my problem ... here ...
by radubolovan
Mon May 12, 2008 8:04 pm
Forum: Bug reports
Topic: "picking" an 3D object from a mouse click
Replies: 4
Views: 1749

I've put sone printf code and here is coordinates:
camera pos: ( 0, 7, -7 )
camera target: ( 0, 2, 0 )
farLeftUp: ( -968.972, 16.9763, 1229.35 )
farLeftDown: ( -968.972, -1165.75, 384.54 )
farRightUp: ( 968.972, 16.9763, 1229.35 )
farRightDown: ( 968.972, -1165.75, 384.54 )

Very strange!!! The Z ...
by radubolovan
Mon May 12, 2008 7:02 pm
Forum: Bug reports
Topic: "picking" an 3D object from a mouse click
Replies: 4
Views: 1749

I did some tests:
I wrote a function adapted from core::line3d<f32> CSceneCollisionManager::getRayFromScreenCoordinates( core::position2d<s32> pos, ICameraSceneNode* camera) :
void transform2dTo3d( core::position2d< s32 > const& pos2d, core::vector3df& pos )
{
const scene::SViewFrustum* f = camera ...