Jump to content

ecma262

Community Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by ecma262

  1. Hi all:

    Just wanted to know a bit more about the naming conventions for global javascript variables. If this topic was already covered on the wiki, I appreciate a pointer to it.

    In gui/session_new/session.js, I see global variables like g_EntityStates and g_Players that are prefixed by 'g_'. But, In input.js, I see global variables like mouseX and mouseY that are not prefixed.

    Is my assumption, that all of the above variables are global, correct?

    Thanks

  2. Thanks Ykkrosh for your response.

    One of the main features that I like about pyrogenesis is using javascript as the scripting language. I see that you did upgrade the version of spidermonkey. Do you think its worth trying to integrate with V8?

    You guys have done a fantastic job with the engine. I will keep playing with it and see where it can take me to.

  3. Here is what I was doing wrong:

    I used Blender 2.49

    I created a simple cube without textures

    I exported the mesh using the triangle

    I edited the .dae file manually to add the texture mapping coordinates

    I kept getting 'face count does not match' error in pyrogenesis

    Here is how I was able to fix it:

    I used Blender 2.5b

    I created a simple cube but this time I added an image texture

    I exported the model using polygons (actually, I didn't have a choice)

    I was able to load the mesh into pyrogenesis

    Success!

    I am attaching the blender file, the collada file, the texture image and a screenshot of what I was able to accomplish.

    Thanks guys for your help

    textured_cube.zip

  4. Mythos_Ruler:

    Thanks. I read somewhere on the wiki that it needs to be exported as triangles and that is what I did in all my exports. Do you know of anyone who was able to take assets from Blender COLLADA and import them directly as meshes in pyrogenesis?

    I am not an artist not even close ;) just a hardcore programmer. I am evaluating pyrogenesis as an engine for my own personal project. So far, I am able to get pyrogenesis to do what I want, but I am at the point where I need to create some 3D models and use them in pyrogenesis. My understanding is that almost all the assets developed for 0.A.D are done using 3d max. I would love to know if there is anyone who is able to use Blender COLLADA plugin.

    My only option for now is to go and read FCollada source code to try and understand what is going on

  5. Hi all:

    I created a simple cube in Blender, then used the COLLADA plugin to export it from Blender 2.49. But, when I try to load the COLLADA file from pyrogenesis. I ran into a few issues:

    - Blender COLLADA plugin does not seem to export TEXCOORD, so I added a faked input with TEXCOORD semantic by hand.

    - I was then faced with 'faces count does not match given entries', after spending an hour looking at the COLLADA 1.4 spec, I noticed that Blender exports face normals and not vertex normals. So, I created a simple COLLADA file using a text editor for a simple triangle and I was able to load it into pyrogenesis.

    Any body is running into the same issue?

    Thanks

    UPDATE: never mind, I am not understanding what is going on and my conclusion above might not be right. If you are able to export Blender models into COLLADA and then use them from inside pyrogenesis (without any conversion), please let me know. Thanks

  6. Thanks, it is looking much better now. You guys rock! very quick response.

    There are a few issues that I have seen, but they are not related to this revision. They have been there since the alpha release, I believe (or even before that).

    One issue is regarding the cursor. It keeps reseting to the center of the screen every time you select a unit and try to point it to another unit or anything else.

    Thanks again.

×
×
  • Create New...