Crystal Space
Welcome, Guest. Please login or register.
July 24, 2014, 12:03:00 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8228 Members
Latest Member: Leandes
* Home Help Search Login Register
  Show Posts
Pages: 1 [2] 3
16  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: November 10, 2008, 12:24:37 pm
I had been reading about dynavis and i think that i have to use it because i'm using complex worlds. I don't know how it works, may be using a iVisibilityCuller for the sector and then including in it objects with iVisibilityObject? But how can i obtain the iVisibilityObject from a general mesh object? How can i load the plugin, with csLoadPluginCheck?

If you have some example it could be a good way to start.

Thank!
17  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: November 10, 2008, 11:28:26 am
Hi Jorrit,

i have done a test creating an object bigger enough in order to hide all the objects behind, but the culling are not doing anything (i have problems with the speed). Should i load any plugin or something similar? How can i activate or make sure that is activate the culling plugin?
18  Crystal Space Projects / Project Discussion / Re: Set color on: November 10, 2008, 10:36:22 am
That method is for loading the objects from a file, but i need set the color while programming the object in c++. Any idea? I'm using General Mesh.
19  Crystal Space Projects / Project Discussion / Set color on: November 06, 2008, 07:26:41 pm
Hi again,

until now i have setting the color of my meshes loading a texture of that color from a file and then creating a material from these texture, but now i'm interested on set the color of a mesh (in particular a submesh of a General Mesh) using code (i.e., using a RGB format). How can i do that? I can't find it in the documentation.

Thank you.
20  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: November 06, 2008, 01:18:11 pm
Thanks, thats good news XD How can i improve the performance of my world? I supose that i have to use the event handler system, isn't it? What is automatic in the engine in order to obtain better performance?
21  Crystal Space Projects / Project Discussion / Visibility Culling on: November 06, 2008, 12:40:07 pm
Hi again,

i'm now starting myself with the culling process, but i am not understanding very well how to use it programing the world and meshes. Could you tell me how to use the methods that i need to insert the culling while programming objects (not reading them from a file)? I'm a bit lost in the API about this.

Thanks!
22  Crystal Space Projects / Project Discussion / Re: addinsidebox problem on: October 20, 2008, 01:51:41 pm
Ok, give me an email and i'll send you the code this evening or tomorrow in the morning, but the problem is only in the sector creation.

Thaks.
23  Crystal Space Projects / Project Discussion / Re: addinsidebox problem on: October 20, 2008, 12:05:41 pm
   
by the way Is there any global method to make all polygons that we render no transparent by default?
thanks!
24  Crystal Space Projects / Project Discussion / Re: addinsidebox problem on: October 20, 2008, 12:02:00 pm
With "changing box size" we mean the world (box) that contains the oil tank that you see on the images, this oil tank has like size
MIN (-600,-800,-1000), MAX (600,836,1000). So we have problems when we have to define the range of the 3D world, the first image is right, but the second  (only with the range different) is wrong, it appears a black background and when you move the camera it´s look like when you are going out limits of the world, but we don´t understand how its posible because the second case world its bigger than the first...
thank you!!!
25  Crystal Space Projects / Project Discussion / Re: addinsidebox problem on: October 20, 2008, 11:30:18 am
Ok, if i use the points (-2000,-2000,-2000),(2000,2000,2000) in AddInsideBox i have this:



But if i use (-6000,-6000-6000),(6000,6000,6000):



And if i move the camera



I have only changed the size of the box making it bigger.
26  Crystal Space Projects / Project Discussion / Re: addinsidebox problem on: October 20, 2008, 10:00:52 am
We are using the 1.2.1 version, and the example code is the same of the simple2 application but we change the size of the box:

Original code:
// Creating the walls for our room.
   csRef<iMeshWrapper> walls (engine->CreateSectorWallsMesh (room, "walls"));
   csRef<iThingFactoryState> walls_state =
      scfQueryInterface<iThingFactoryState> (walls->GetMeshObject ()->GetFactory());
   walls_state->AddInsideBox (csVector3(-5, 0, -5), csVector3(5, 20, 5));

We are having problems when use, instead of (-5,0,-5),(5,20,5), the points (-6000,-6000,-6000),(6000,6000,6000) for example, but if we use (-2000,-2000,-2000),(2000,2000,2000) or (-2000,-2000,-2000),(60000,60000,60000) there aren't problems.

Our object only need a box of (-600,-800,-1000),(600,836,1000).

Thanks for your constant help.

27  Crystal Space Projects / Project Discussion / addinsidebox problem on: October 17, 2008, 04:34:05 pm
Hi, now i'm working with sectors and i have a problem when i create in a sector a box where draw inside my objects. When i give the two csVector3 of the parameters of addInsideBox of iThingFactoryState sometimes the render is good and other times is like when you are out of range or in a wall but this depends on what coordenates i give. For example, when i give the two points (-2000,-2000,-2000) and (2000,2000,2000) or (-60000,-60000,-60000) and (2000,2000,2000) the visualitation is all right, but if i insert (-3000,-3000,-3000) and (3000,3000,3000) appear problems. Do you have any idea about that? (All the coordinates are big enough for the object that i draw inside)
28  Crystal Space Projects / Project Discussion / Re: Double side polygon render on: October 14, 2008, 09:49:02 am
Thank you very much Jorrit! we´ll keep trying!!
Bye!
29  Crystal Space Projects / Project Discussion / Double side polygon render on: October 13, 2008, 04:12:38 pm
Hi!! We have had problems during the drawing phase, and we would like to know if it exists any option to make by default that polygons are coloured on both sides ever.
Thank you very much!!
30  Crystal Space Projects / Project Discussion / Re: 99.1.37 vs 1.2.1 on: October 13, 2008, 04:05:15 pm
thanks!!
Pages: 1 [2] 3
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 1.157 seconds with 15 queries.