Crystal Space
Welcome, Guest. Please login or register.
December 20, 2014, 01:27:52 am

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9292 Members
Latest Member: Agaqkopa
* Home Help Search Login Register
  Show Posts
Pages: [1] 2 3
1  Crystal Space Projects / Project Discussion / Reloading maps on: March 26, 2009, 04:33:51 pm
Hi all,

i have a doubt about how to load a map when i have already one loaded. I want to delete the first one (I don't need it anymore) and use the second one freeing the memory used by the old map. What is the best way to obtain this?
2  Crystal Space Projects / Project Discussion / Re: Saving a map on: December 30, 2008, 12:38:31 pm
Hi again,

when i try to activate the saveable flag with SetSaveableFlag(true) i have an interruption in the execution. What prerequisites have this action? What is involved in the activation of the flag and the process of saving a map?
3  Crystal Space Projects / Project Discussion / Re: Saving a map on: December 22, 2008, 03:47:08 pm
Can you post an example about how to load and use the map saver plugin?
4  Crystal Space Projects / Project Discussion / Re: Assertion failed on: December 16, 2008, 02:20:46 pm
I continue with the same problem, but now i know that it couldn't be for an excess of meshes because i have the same assertion with less meshes (only 182). I know that it's something related with de dynavis (with frustvis it doesn't happens), but i don't know what. Anyone could help me?
5  Crystal Space Projects / Project Discussion / Saving a map on: December 12, 2008, 02:11:43 pm
Hi,
is there any possibly of saving a map in a file with some legible format when i have created the map programming (not loading from a file)?
6  Crystal Space Development / Support / Qt and Crystal Space on: December 11, 2008, 01:09:35 pm
Hi! I´m mik and i want to make an application with a Qt interface that shows a crystal space window. I have allready done my crystal space application using the simple example from docs. Now i should import the window to my qt interface, my problem it´s about how to transform the simple application into a library or whatever, to get an object of my class Engine that i had to initialize and call it from the interface using a handle window or something like that.
What should I do to initialize the object, instead of csApplicationRunner::Run?
and to get the handle of the window?

thank you very much for help!!
7  Crystal Space Projects / Project Discussion / Assertion failed on: December 04, 2008, 01:03:21 pm
Hi,

i have continued working with the culling, the received aid on my previous problems has been very successful, but now i have a new doubt. When i try to work with a bigger amount of information than my previous sectors i have an assertion failed (i'm going to post it below), and looking the call stack i supose it's relationated with the dynavis plugin, but i don't know waht's the problem. Too many meshes?



crystalspace.canvas.openglwin:
  GL driver: nvoglv32.dll 7.15.11.6925

crystalspace.canvas.openglcommon.driverdb:
  Applied: NVidia: RECT texture extension apparently broken

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce 8800 GTS 512/PCI/SSE2 (vendor: NVIDIA Corporation)
  version 2.1.2
  Using windowed mode at resolution 1024x768.
  Pixel format: Color: 32 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 64
  AccumAlpha: 16 MultiSamples: 0
  Multisample: disabled

crystalspace.canvas.openglwin:
  VSync is disabled.

crystalspace.graphics3d.opengl:
  Using VBO with 64 MB of VBO memory

crystalspace.engine.notify:
  Recalculation of lightmaps forced.
  Initializing lighting (14963 meshes).
  Shining lights (4 lights).
WARNING! Object 'MyObject6989' is not closed!
WARNING! Object 'MyObject1202' is not closed!
WARNING! Object 'MyObject7320' is not closed!
WARNING! Object 'MyObject10770' is not closed!
WARNING! Object 'MyObject11449' is not closed!
WARNING! Object 'MyObject5428' is not closed!
...
  Time taken: 190.2720 seconds.
Assertion failed: vertex_table
Location:         c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\obb.cpp:405
Call stack:
[0x491224ee] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csOBB::FindOBB+0x4e @c:
\trabajo\jquiles\baip-svn\cs\libs\csgeom\obb.cpp:405 (vertex_table = 0(0x0), num
 = 0(0x0), eps = 0(0x0))
[0x490e87d5] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csDynavisObjectModel::G
etOBB+0x85 @c:\trabajo\jquiles\baip-svn\cs\plugins\culling\dynavis\dmodel.cpp:15
5 ()
[0x490e8734] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csDynavisObjectModel::H
asOBB+0x14 @c:\trabajo\jquiles\baip-svn\cs\plugins\culling\dynavis\dmodel.cpp:13
9 ()
[0x490f377f] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csDynaVis::TestObjectVi
sibility+0x29f @c:\trabajo\jquiles\baip-svn\cs\plugins\culling\dynavis\dynavis.c
pp:1690 (obj = 1368298752(0x518e9500), data = 1240692(0x12ee74), frustum_mask =
59(0x3b))
[0x490f51c9] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)VisTest_Front2Back+0xb9
 @c:\trabajo\jquiles\baip-svn\cs\plugins\culling\dynavis\dynavis.cpp:1980 (treen
ode = 1571675712(0x5dadde40), userdata = 1240692(0x12ee74), cur_timestamp = 6(0x
6), frustum_mask = 1239376(0x12e950))
[0x49129282] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
42 @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:795 (pos = 1240692(0x1
2ee74), func = 1225740560(0x490f5110), userdata = 1240692(0x12ee74), cur_timesta
mp = 6(0x6), frustum_mask = 59(0x3b))
[0x491292db] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
9b @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:803
[0x49129341] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
101 @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:809
[0x491292db] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
9b @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:803
[0x491292db] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
9b @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:803
[0x491292db] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
9b @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:803
[0x49129341] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
101 @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:809
[0x49129386] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
146 @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:813
[0x491292db] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
9b @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:803
[0x49129386] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
146 @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:813
[0x491292db] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
9b @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:803
[0x49129553] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csKDTree::Front2Back+0x
33 @c:\trabajo\jquiles\baip-svn\cs\libs\csgeom\kdtree.cpp:857 (pos = 1240692(0x1
2ee74), func = 1225740560(0x490f5110), userdata = 1240692(0x12ee74), frustum_mas
k = 63(0x3f))
[0x490f4e1f] (c:\trabajo\jquiles\BAIP-SVN\cs\dynavis.dll)csDynaVis::VisTest+0x54
f @c:\trabajo\jquiles\baip-svn\cs\plugins\culling\dynavis\dynavis.cpp:2140 (rvie
w = 1689556488(0x64b49608), viscallback = 1573436848(0x5dc8bdb0))
[0x441f2b10] (c:\trabajo\jquiles\BAIP-SVN\cs\engine.dll)csSector::GetVisibleMesh
es+0x330 @c:\trabajo\jquiles\baip-svn\cs\plugins\engine\3d\sector.cpp:623 (rview
 = 1689556488(0x64b49608))
[0x4701fe5f] (c:\trabajo\jquiles\BAIP-SVN\cs\rendstep_std.dll)csGenericRenderSte
p::Perform+0x4f @c:\trabajo\jquiles\baip-svn\cs\plugins\engine\renderloop\stdste
ps\generic.cpp:395 (rview = 1689556488(0x64b49608), sector = 1187629092(0x46c9c8
24), light = 0(0x0), stacks = 263001384(0xfad1528))
[0x4701fdfa] (c:\trabajo\jquiles\BAIP-SVN\cs\rendstep_std.dll)csGenericRenderSte
p::Perform+0x2a @c:\trabajo\jquiles\baip-svn\cs\plugins\engine\renderloop\stdste
ps\generic.cpp:309 (rview = 1689556488(0x64b49608), sector = 1187629092(0x46c9c8
24), stacks = 263001384(0xfad1528))
[0x441e4ebd] (c:\trabajo\jquiles\BAIP-SVN\cs\engine.dll)csRenderLoop::Draw+0x1ad
 @c:\trabajo\jquiles\baip-svn\cs\plugins\engine\3d\renderloop.cpp:85 (rview = 16
89556488(0x64b49608), s = 1187629092(0x46c9c824), mesh = 0(0x0))
[0x4412e62f] (c:\trabajo\jquiles\BAIP-SVN\cs\engine.dll)csEngine::Draw+0x1ff @c:
\trabajo\jquiles\baip-svn\cs\plugins\engine\3d\engine.cpp:1510 (c = 1188056344(0
x46d04d18), view = 2870336(0x2bcc40), mesh = 0(0x0))
[0x004daf10] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csView::Draw+0xb0 @c:\t
rabajo\jquiles\baip-svn\cs\libs\cstool\csview.cpp:161 (mesh = 1188056344(0x46d04
d18))
[0x004b5832] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)Simple::ProcessFrame+0x
a42 @c:\trabajo\jquiles\baip-svn\cs\apps\tutorial\simple2\simple2.cpp:138 ()
[0x004c48ee] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csBaseEventHandler::Han
dleEvent+0x9e @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\csbaseeventh.cpp:125 (
event = 0(0x0))
[0x004c3c60] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csBaseEventHandler::Eve
ntHandlerImpl::HandleEvent+0x30 @c:\trabajo\jquiles\baip-svn\cs\include\csutil\c
sbaseeventh.h:88 (event = 0(0x0))
[0x00598b32] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventTree::Dispatch+0
xe2 @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cssubscription.cpp:576 (e = 0(0x
0))
[0x005989fe] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventTree::Notify+0x8
e @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cssubscription.cpp:547 ()
[0x005216d4] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventQueue::Notify+0x
74 @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cseventq.cpp:278 (name = 0(0x0))
[0x0051fce5] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventQueue::iTypedFra
meEventDispatcher::HandleEvent+0x25 @c:\trabajo\jquiles\baip-svn\cs\include\csut
il\cseventq.h:263 (__formal = 0(0x0))
[0x00598b32] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventTree::Dispatch+0
xe2 @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cssubscription.cpp:576 (e = 0(0x
0))
[0x005989fe] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventTree::Notify+0x8
e @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cssubscription.cpp:547 ()
[0x005216d4] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventQueue::Notify+0x
74 @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cseventq.cpp:278 (name = 0(0x0))
[0x005217e6] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csEventQueue::Process+0
xe6 @c:\trabajo\jquiles\baip-svn\cs\libs\csutil\cseventq.cpp:298 ()
[0x004d890a] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csDefaultRunLoop+0x19a
@c:\trabajo\jquiles\baip-svn\cs\libs\csutil\generic\runloop.cpp:92 (r = 0(0x0))
[0x004b6da4] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csApplicationFramework:
:Run+0x14 @c:\trabajo\jquiles\baip-svn\cs\include\cstool\csapplicationframework.
h:330 ()
[0x004b6d74] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)Simple::Application+0x4
4 @c:\trabajo\jquiles\baip-svn\cs\apps\tutorial\simple2\simple2.cpp:236 ()
[0x004c6551] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csApplicationFramework:
:Start+0x41 @c:\trabajo\jquiles\baip-svn\cs\libs\cstool\csapplicationframework.c
pp:72 ()
[0x004c68c0] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csApplicationFramework:
:Main+0x80 @c:\trabajo\jquiles\baip-svn\cs\libs\cstool\csapplicationframework.cp
p:131 (argc = 0(0x0), argv = 0(0x0))
[0x004bd7a0] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)csApplicationRunner<Sim
ple>::Run+0x50 @c:\trabajo\jquiles\baip-svn\cs\include\cstool\csapplicationframe
work.h:441 (argc = 2(0x2), argv = 3754744(0x394af8))
[0x004bad56] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)main+0x16 @c:\trabajo\j
quiles\baip-svn\cs\apps\tutorial\simple2\simple2.cpp:1600 (argc = 2(0x2), argv =
 3754744(0x394af8))
[0x005db556] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)__tmainCRTStartup+0x1a6
 @f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c:597 ()
[0x005db39d] (c:\trabajo\jquiles\BAIP-SVN\cs\simple2.exe)mainCRTStartup+0xd @f:\
sp\vctools\crt_bld\self_x86\crt\src\crtexe.c:414 ()
[0x76074911] (C:\Windows\system32\kernel32.dll)BaseThreadInitThunk+0x12
[0x7715e4b6] (C:\Windows\system32\ntdll.dll)RtlInitializeExceptionChain+0x63
[0x7715e489] (C:\Windows\system32\ntdll.dll)RtlInitializeExceptionChain+0x36
8  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: December 02, 2008, 01:42:26 pm
jorrit said:
"I'm sending you a mail because I can no longer login on to the forums
due to technical problems. Your scale is way too much. You should not use
such big numbers for coordinates. 3D cards can't handle that easily. Best is
to scale things down a bit. That will solve your problem.

Greetings,"




Thank you very much one more time Wink
9  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: December 02, 2008, 11:21:55 am
I can't know the size of the avatar because i'm importing all data from a binary file, but it has real dimension. The scale is in millimeters with 2 decimals and i'm working inside a box with a minimum point of (0,0,0) and a maximum point of (38517.00, 43744.00, 83209.25). I add some extra size to the sector in order to take a general view with the camera from outside, i'm having some problems with this, but that's another story. How can i resolve the problem of the accuracy?
10  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: December 01, 2008, 02:33:05 pm
Ok, i will check the transparency.

Here i have two screenshots, one bad and the other good, they are an easy example about my problem.


This is the bad one.


This is the good.

As you can see, when i go closer i don't have the problem.

You can see this other screenshot with the problem too:



Thank you very much one more time for your time.
11  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: December 01, 2008, 01:15:35 pm
mmm, i have to check the transparency because i'm importing the polygons.

What i want to say with 'polygons are too close' is that some polygons have coordinates very similar. Could that be a problem when Crystal decides wich polygon is in the front and wich in the back?
12  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: December 01, 2008, 11:52:56 am
But depending on where i put the camera i see polygons behind nearest and in some places while moving the camera i see changes about what polygon i see. Polygons are too close, but i thought that the problem was about that warning. Any idea?
13  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: December 01, 2008, 11:15:34 am
Hi again,

i have been working with the culling but with some of my objects i have this problem:

WARNING! Object 'MySprite2' is not closed!

I have been trying the methods csPolygonMeshTools::IsMeshClosed, csTriangleMeshTools::IsMeshClosed, csPolygonMeshTools::CloseMesh and csTriangleMeshTools::CloseMesh, but i couldn't find a solution.

What could be the problem? How can i resolve it?
14  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: November 11, 2008, 10:58:19 am
Thank you very much, that was what i needed.
15  Crystal Space Projects / Project Discussion / Re: Visibility Culling on: November 10, 2008, 01:57:56 pm
No, i'm using a data structure, so i have points asociated to an object and i'm creating everything programming, no loading from a file. For example, in one type of objects i set the points of that object:

...
for (int j=0; j<(vertex_size); j++, count++)
   {
      P3D_Vertex* vert = polygon->Get_Vertex_List()->at(j);
      factstate->GetVertices ()[count].Set
         (vert->Get_Coord_X(),vert->Get_Coord_Y(),vert->Get_Coord_Z());
   }
...

So i need use the dynavis culling programming too.
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 2.223 seconds with 15 queries.