Main Menu
Menu

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.

Show posts Menu

Messages - ForOhFor Error

#1
Thanks, I got it working now.
#2
Same result :/
Just a blank, blue screen (I can blit onto it, so the buffer is rendering fine).
And it works perfectly in eclipse :/
#3
And that's for loading files that are contained in the jar, correct?
#4
Support / Obj Models not loading after exporting
May 13, 2013, 02:57:58 AM
(Posted this in the wrong section at first - whoops)

So, my problem is fairly simple. I have a call to load a model in my project:
tabletop = Object3D.mergeAll(Loader.loadOBJ("res/model/Tabletop.obj","res/model/Tabletop",260f));
and all is well in eclipse - it loads just fine.

However, when I export the jar (and package it all up with JarSplice), the model doesn't load (none of the models I'm using load, in fact).

I have tried placing the res folder in both the jar itself, and in a folder alongside the jar, and both just load with a blank buffer being rendered.
#5
Support / Re: Models not loading after exporting
May 12, 2013, 07:25:15 PM
Resources doesn't appear to be a type I can import.
#6
Support / Models not loading after exporting
May 12, 2013, 07:01:33 PM
So, my problem is fairly simple. I have a call to load a model in my project:
tabletop = Object3D.mergeAll(Loader.loadOBJ("res/model/Tabletop.obj","res/model/Tabletop",260f));
and all is well in eclipse - it loads just fine.

However, when I export the jar (and package it all up with JarSplice), the model doesn't load (none of the models I'm using load, in fact).

I have tried placing the res folder in both the jar itself, and in a folder alongside the jar, and both just load with a blank buffer being rendered.
#7
Support / Re: Drawing with AWT over 3D Render?
May 09, 2013, 12:23:23 PM
Okay, is there a good example for that somewhere? Like I said, I'm still learning.
#8
Support / Re: Drawing with AWT over 3D Render?
May 08, 2013, 09:33:15 PM
Right, so what would be some reasonable alternatives? I'd rather not use a 2D plane in front of the camera and constantly blit the Texture, if at all possible.
#9
Support / Re: Drawing with AWT over 3D Render?
May 08, 2013, 12:20:41 PM
Yes, I am.
#10
Support / Drawing with AWT over 3D Render?
May 08, 2013, 12:42:04 AM
Hey, I'm a bit of a noobie around here, but I'm trying to learn. That said, here's my trouble:

This code fails to draw a square into the corner of the JFrame I'm using (a proof of concept - If I can draw a square, I can draw an image as well):
while (frame.isShowing()) {
buffer.clear(java.awt.Color.BLUE);
world.renderScene(buffer);
world.draw(buffer);
buffer.update();
Graphics g = buffer.getGraphics();

g.fillRect(0, 0, 10, 10);

buffer.displayGLOnly();
canvas.repaint();
Thread.sleep(10);
}


Is there something I'm missing?