Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - eye1

Pages: [1] 2 3 ... 5
1
Support / Re: Anyone has experience with working with blender?
« on: May 23, 2013, 01:09:12 pm »
Ok, I changed it.

2
Support / Re: Anyone has experience with working with blender?
« on: May 23, 2013, 11:14:03 am »
Yes,
That was the case! Blender put the model on completely different scale, much smaller.
I'll do the research to find out how to set those unit in blender to fit my needs.

thanks 

3
Support / Re: Anyone has experience with working with blender?
« on: May 23, 2013, 10:58:44 am »
Hi Egon,

I understand this relation between object vs. world space (at least I think I do). The reason I have overridden the center of the object is because I wanted that objects have the center at exactly the point where it was defined in 3ds file and not in the center of the object as it recalculated when build is called (this was done long time ago, I think that was the reason).
 
Nevertheless even if I leave the center untouched and leave it how the engine recalculates it, still original 3ds file is rendered, while exported one from blender is not.
The center engine recalculates is much different. Do this numbers tell me that the blender resized the model and is now much smaller and maybe thats why I can not see it anymore?

Code: [Select]
   public void addToWareHouse(WareHouse warehouse, SimpleVector origin)
   {
      getPart(PART_MODEL).setOrigin(origin);
      warehouse.addObject(getPart(PART_MODEL));
      System.out.println("first:" + getPart(PART_MODEL).getCenter() + " - " + getPart(PART_MODEL).getOrigin());
      getPart(PART_MODEL).build();
      System.out.println("second:" + getPart(PART_MODEL).getCenter() + " - " + getPart(PART_MODEL).getOrigin());
      this.warehouse = warehouse;
   }

original 3ds:

Code: [Select]
first:(0.0,0.0,0.0) - (0.0,-2500.0,0.0)
second:(-845.3932,734.2141,-306.81332) - (0.0,-2500.0,0.0)

blenders exported 3ds
Code: [Select]
first:(0.0,0.0,0.0) - (0.0,-2500.0,0.0)
second:(-0.028999299,-2.2083154,0.854877) - (0.0,-2500.0,0.0)

4
Support / Re: Anyone has experience with working with blender?
« on: May 23, 2013, 09:28:08 am »
Shouldn't than model just be located on different coordinates and not moved out of the scene?
Can I do something here?
The thing is, even if I create a simple box with blender and try to import it into the World.  I can not see it anywhere.

5
Support / Re: Anyone has experience with working with blender?
« on: May 22, 2013, 09:46:48 pm »
Code: [Select]
   public void addToWareHouse(WareHouse warehouse, SimpleVector origin)
   {
      getPart(PART_MODEL).setOrigin(origin);
      warehouse.addObject(getPart(PART_MODEL));
      SimpleVector rotPiv = getPart(PART_MODEL).getRotationPivot();
      SimpleVector center = getPart(PART_MODEL).getCenter();

      getPart(PART_MODEL).build();
      System.out.println("first:" + getPart(PART_MODEL).getCenter());
      getPart(PART_MODEL).setRotationPivot(rotPiv);
      getPart(PART_MODEL).setCenter(center);
      System.out.println("second: " + getPart(PART_MODEL).getCenter());
      this.warehouse = warehouse;
   }

original model:
Code: [Select]
first:(-845.3932,734.2141,-306.81332)
second: (0.0,0.0,0.0)

blender exported model:
Code: [Select]
first:(-0.028999299,-2.2083154,0.854877)
second: (0.0,0.0,0.0)

It is a big difference. The thing is I override rotationpivot and center with values which object had before the build was called.
What does this difference mean here, I am not really sure what does this mean?
 

6
Support / Anyone has experience with working with blender?
« on: May 22, 2013, 05:40:41 pm »
I have a 3ds file. If I load it to jpct engine it is loaded fine. I import/export the file in blender (without any change). Exported file is than imported by the engine normally, but it is not visible in the world. I must be missing something here?

Code: [Select]
Loading file 3ds/forklift.3ds
File 3ds/forklift.3ds loaded...6964 bytes
Processing new material BLACK_PLASTI!
Processing new material CROMED!
Processing new material Material #1!
Processing object from 3DS-file: ELT_COVE
Object 'ELT_COVE_jPCT154' created using 394 polygons and 221 vertices.
Created 83 triangle-strips for object158 in 5 pass(es)

Before:


After:


regards

[attachment deleted by admin]

7
Support / Re: Fenggui with jpct in OpenGL mode
« on: May 21, 2008, 11:57:51 pm »
OMG Egon....

Yes I changed useMultipleThreads property to false and it solved both exceptions.


Thank you very much.... I was banging my head over that for the whole day :)

8
Support / Fenggui with jpct in OpenGL mode
« on: May 21, 2008, 10:11:40 pm »
Hello. It's been a long time since I last wrote here.

I'm trying to integrate fenggui in my warehouse application created some time ago, but I'm having some difficulties.

initialization part
Code: [Select]
         setDefaultEnvironement();
         new Vis3DConfig(this);
         ModelLoader.loadTextures();
         ModelLoader.cacheModels();
         warehouses = WarehouseXMLLoader.load(doc);
         //set first warehouse as default
         warehouse = (WareHouse)warehouses.get(0);
         warehouse.startControllers();
         doc = null;
         warehouse.setDefaultThread(Thread.currentThread());
         buffer = new FrameBuffer(resWidth, resHeight, FrameBuffer.SAMPLINGMODE_HARDWARE_ONLY);
         buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);
         buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
for some reason if i dont put sleep here i get an exception
java.lang.IllegalStateException: Mouse must be created.
   at org.lwjgl.input.Cursor.getMaxCursorSize(Cursor.java:136)
        ...

Code: [Select]
         --------ADDED FROM HERE-------
         try
         {
            Thread.sleep(2000);
         }
         catch (InterruptedException ie)
         {}
         LWJGLBinding binding = new LWJGLBinding();
         desk = new org.fenggui.Display(binding);
         buildGUI();
         --------ADDED UNTIL HERE-------
         render();


adding test gui widget
Code: [Select]
      Window mw = new Window();
      desk.addWidget(mw);
      mw.setTitle("TEST EMPTY WINDOW");
      mw.setSize(300, 100);
      mw.setX(100);
      mw.setY(100);
      desk.layout();


rendering part
Code: [Select]
      while (running)
      {
         poll();
         synchronized(warehouse)
         {
             warehouse.doMovement();
             buffer.clear();
             warehouse.renderScene(buffer);
             warehouse.draw(buffer);
         }
         buffer.update();
here i get an exception

java.lang.NullPointerException
   at org.lwjgl.opengl.GL11.glPushAttrib(GL11.java:2495)
   at org.fenggui.render.lwjgl.LWJGLOpenGL.pushAllAttribs(Unknown Source)
   at org.fenggui.Display.display(Unknown Source)
        ...

Code: [Select]
         --------ADDED FROM HERE-------
         desk.display();
         --------ADDED UNTIL HERE-------
         addBliting(buffer);
         buffer.displayGLOnly();
         second = System.nanoTime();
         actualSleepTime = sleepTime - (second - first);
         if (actualSleepTime < 0)
         {
            actualSleepTime = 0;
         }
         long actualMilsec = (long)((float)actualSleepTime/1000000f);
         int actualnanoSec = (int)(actualSleepTime%1000000);
         try
         {
            Thread.sleep(actualMilsec, actualnanoSec);
         }
         catch (InterruptedException ie)
         {}
         first = second;
      }



I checked in fenggui source and it is thrown here

Code: [Select]
    public void pushAllAttribs() {
    GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
    }

Anyone know what I'm doing wrong?

9
Projects / Re: kilavuz: a guide in the polygon soup
« on: May 25, 2007, 11:05:58 pm »
Fantastic stuff.


10
Projects / Re: DevKit / Level Editor
« on: May 20, 2007, 05:24:31 pm »
I would be very happy if you do so. Especialy the part, where you are combining the fenggui with jpct (lwjgl). And how you managed to do the mouse and key mapping. Hopefully in some near future i will also implement menu in my application and put it one the web via webstart. But at the moment my project is paused, because I must finish some stuff for school and some other things must be done at work before that.

11
Projects / Re: DevKit / Level Editor
« on: May 19, 2007, 11:28:30 am »
great work! Looks very nice.

12
Support / Re: Problem receiving data from a Socket.
« on: May 17, 2007, 01:04:18 pm »
I use appache XML-RPC http://ws.apache.org/xmlrpc/ to transfer data between server and client

It is very simple to use.

13
Feedback / Re: Members' backgrounds...
« on: April 26, 2007, 09:40:48 pm »
I'm a last year student of computer science and informations. Have 4 more exams to do and dissertation, which will most likely be the warehouse visualisation i did with jpct  ;D.
In highschool (computer technician) were my first steps of learning programing in Pascal an later I learned on my own to do some things in Delphi. In university i got some basics of Java, the language which i still like and use the most. In second year at university i found my self a part time job as developer, where I learned most of my today konwledge of Java and PL/SQL. I used to play a lot of games as a kid on nintendo ad later on PS and PS2, and of course PC. But now I do not any more. I get bored after few minutes. Todays games really doesn't have hart or maybe I lost the hart for them.

14
Support / Re: saving and seting camera position
« on: March 23, 2007, 01:36:25 am »
thank you...  :)

15
Support / Re: saving and seting camera position
« on: March 22, 2007, 03:11:58 pm »
I will be glad if you do   :)

Pages: [1] 2 3 ... 5