Search found 22 matches

by dunmatt
Wed 2. Oct 2013, 23:40
Forum: Plugin System
Topic: Adding a tuprolog REPL
Replies: 3
Views: 1948

Re: Adding a tuprolog REPL

Just to follow up, this turned out to be much simpler than I had expected. Using StringEvaluator and JTerm works beautifully. To see my plugin in action (or if you want to add symbolic reasoning to your own jReality applications) check out https://github.com/dunmatt/tujr
by dunmatt
Wed 2. Oct 2013, 21:30
Forum: Plugin System
Topic: Adding a tuprolog REPL
Replies: 3
Views: 1948

Re: Adding a tuprolog REPL

Ah, sorry, I should have been more clear. REPL is Read Eval Print Loop. If you open a terminal and type "python" it will take you into the Python REPL, similarly, if in jReality you've added the PythonConsole plugin and you open the bottom slot you find yourself in a Jython REPL. tuProlog is a pure-...
by dunmatt
Wed 2. Oct 2013, 01:43
Forum: Plugin System
Topic: Adding a tuprolog REPL
Replies: 3
Views: 1948

Adding a tuprolog REPL

Hello all. I'm working with a robot simulator that is visualized in jReality. The experience is great, I have it bound so that from the PythonConsole I can access the relevant java objects and interact with the simulated robot at the API level. :D Now that the time has come to add symbolic reasoning...
by dunmatt
Fri 19. Jul 2013, 20:24
Forum: Feature Requests
Topic: Errors when failing to set appearance attributes correctly
Replies: 4
Views: 1192

Errors when failing to set appearance attributes correctly

I just spent entirely too long figuring out why the following line of code does nothing: pointsComponent.getAppearance().setAttribute(CommonAttributes.POINT_SHADER + "." + CommonAttributes.POINT_SIZE, 2); It would be really nice if setAttribute would throw an exception if you've asked for a string t...
by dunmatt
Fri 19. Jul 2013, 20:20
Forum: Programming Help
Topic: best way to display pointclouds
Replies: 3
Views: 1156

Re: best way to display pointclouds

That worked wonderfully, thanks! For future readers, the other thing I had to set was VERTEX_DRAW to true.
by dunmatt
Wed 3. Jul 2013, 23:09
Forum: Feature Requests
Topic: Support for multiple microphones
Replies: 0
Views: 873

Support for multiple microphones

Right now the audio API allows for sound sources to be positioned relative to "the microphone", but it'd be nice to be able to listen (or record) from various places in the scene simultaneously. Specifically, I'd like to be able to simulate a microphone array of a given shape listening to a scene of...
by dunmatt
Mon 1. Jul 2013, 21:56
Forum: Programming Help
Topic: best way to display pointclouds
Replies: 3
Views: 1156

best way to display pointclouds

Hello all, I was wondering, what is the best (read: fastest) way to display about a million 3D points? I'm trying to calibrate a model of a robot with its physical version, and it would be really handy to be able to overlay the physical one onto the model to see where they don't line up.
by dunmatt
Wed 26. Jun 2013, 19:45
Forum: Programming Help
Topic: jbullet integration
Replies: 4
Views: 2042

jbullet integration

The homepage says that there exists integration between jreality and jbullet, is that documented anywhere? Right now I'm using a year-old version of jreality with ODE4j to build a robot simulator, but I'm certainly not married to the idea, I'd much rather defer to someone else's work stitching physi...
by dunmatt
Sat 25. Aug 2012, 20:06
Forum: Programming Help
Topic: Smoothed models from an STL file
Replies: 14
Views: 2203

Re: Smoothed models from an STL file

@Gunn Thanks! That was exactly the issue, your fix worked! And yeah, now that the faces are being smoothed that error on the upper right side is a lot more apparent.

Thanks everyone for your help!
by dunmatt
Sat 25. Aug 2012, 19:58
Forum: Programming Help
Topic: Spacenav?
Replies: 9
Views: 1763

Re: Spacenav?

Alrighty, so I got jReality building from source, uncommented that line in toolconfig-split.xml, and now when I run the Icosahedron.java tutorial file I get the following error: java.lang.NullPointerException at de.jreality.plugin.basic.ToolSystemPlugin.updateScenePaths(ToolSystemPlugin.java:165) at...
by dunmatt
Wed 22. Aug 2012, 22:35
Forum: Programming Help
Topic: Smoothed models from an STL file
Replies: 14
Views: 2203

Re: Smoothed models from an STL file

Hmmm, I'm not sure how to use that... am I loading the model wrong?

SceneGraphComponent temp = Readers.read(new File(stlFilename));
by dunmatt
Wed 22. Aug 2012, 17:55
Forum: Programming Help
Topic: Smoothed models from an STL file
Replies: 14
Views: 2203

Re: Smoothed models from an STL file

Alright, the left side panel is now useful, thanks! Unfortunately the flat shading setting there seems to do exactly the same thing as the smooth shading option in the node's Appearance; it changes whether or not the round primitives are smooth, but it does nothing to the STL shapes.
by dunmatt
Wed 22. Aug 2012, 17:08
Forum: Programming Help
Topic: Smoothed models from an STL file
Replies: 14
Views: 2203

Re: Smoothed models from an STL file

No, I haven't tried that, "Window" -> "Left Slot" just shows a ~8px wide gray bar on the side with no controls in it of any sort. That's all I've ever seen it do, I just assumed it was something I could populate later if I saw fit. Is there another way to turn on flat shading? I use JRViewer.display...
by dunmatt
Wed 22. Aug 2012, 16:36
Forum: Programming Help
Topic: Smoothed models from an STL file
Replies: 14
Views: 2203

Re: Smoothed models from an STL file

Huh, I hadn't even noticed that problem, but that's not really the problem I'm trying to solve at the moment. Here are screenshots to match yours, note how much more visible the polygons are for me, that's what I'm trying to solve. FWIW I found that sketchup has a smooth operation that seems to do w...
by dunmatt
Mon 20. Aug 2012, 18:44
Forum: Programming Help
Topic: Spacenav?
Replies: 9
Views: 1763

Re: Spacenav?

Cool, thanks. If it helps, I found that the .java source is indeed in the jReality src, so I'm not sure why the .class isn't in the release jar I downloaded. When I get some time I'm going to try building my own jar from source, but that might be a bit, this is a fairly low priority feature.