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 - atreyu64

Pages: 1 2 [3]
31
Support / Post-processing on a single world
« on: February 27, 2014, 12:57:35 am »
Hi,

I'm trying to make a neon light like effect on some polylines ONLY, using the mighty BloomGLProcessor class.
For this I've created a special world for polylines, which I draw first, then launch post-process, and finally draw my main world.

So basically this is how I'm rendering things :

Code: [Select]
// polylines first :
linesWorld.renderScene(fb);
linesWorld.draw(fb);
bloomProcessor.process();

// main scene :
world.renderScene(fb);
world.draw(fb);

The problem is that I don't get what I expected, the blur effect is not visible after drawing the main world.
Is there a solution ? Thanks in advance !  ;D


Here is my normal scene before trying anything stupid :

Without bloom par atreyu64, sur Flickr

Trying to make the bloom on polyline as explained above :


Polylines and World par atreyu64, sur Flickr

Displaying only the polyline world (with post-processing) :


Polylines only par atreyu64, sur Flickr

What I would like to get (made with Photoshop) :

What I Want par atreyu64, sur Flickr

32
Projects / Re: TopoMap3D - maps for hikers (France)
« on: January 16, 2014, 11:36:25 pm »
Thanks a lot for your kind answer, I'll let you know when the Android App will be rekeased !  ;D

33
Projects / TopoMap3D - maps for hikers (France)
« on: January 16, 2014, 05:36:05 pm »
Hi there,

Here is a little project which is still under construction but will very soon become more official.
The goal is to make an interactive version of already existing mountain hiking maps (on paper), for both PC and Android.
Hiking pathes are represented by polylines, and places by billboard planes.

Some technical features :
  • advanced billboard system (rectangular billboards for better picking, billboards have always the same size on the screen whatever their position, ...)
  • advanced blitting GUI (interaction with blitting elements, blitting drag with mouse / touch, buttons magnification, menu animations, blitting tooltips, ... )
  • fast vertical projection on map (using a kind of simple polygon research)
  • custom shader : add color on map depending on the altitude, and display altitude iso lines
  • high resolution texture (4096x4096) available even for android
  • camera : orbit camera system, camera smooth animation, the zoom with mouse wheel focuses on the point under cursor, compass-like camera rotation using android sensors, ...

Deployement :

I know there is nothing really technically special or complex, but just in case someone would like to know some details, feel free to ask.

JPCT was the perfect tool for me because I needed a light, simple, permormant and portable 3D framework.
So thanks a lot JPCT community and especially EgonOlsen for the very useful help !


Here is a part of the existing paper version :



And here is how the app looks like basically for now :




Custom shader :



Blitting menu opening animation :



34
Bugs / Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« on: November 19, 2013, 11:03:07 am »
For those who are interested, LWJGL has fixed the problem. Now I use JPCT + LWJGL 2.9.1 (nightly build of november 16) and my applet works fine again.

35
Bugs / Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« on: November 01, 2013, 11:51:00 pm »
Well, for now LWJGL works fine with jnlp but doesn't with applets. I hope this will be fixed by LWJGL team, I still have no access to their forum.  :-\

36
Bugs / Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« on: November 01, 2013, 08:47:58 pm »
Applets do work in Chrome, as well as java webstart.

37
Bugs / Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« on: October 20, 2013, 10:22:36 pm »
Hi,

After updating java to 7u45, I cannot launch my Applet anymore.
It seems to come from a jar signature problem, as discussed in the LWJGL forum : http://lwjgl.org/forum/index.php/topic,5206.0.html
The solution suggested by Pignic sounds a little bit tricky, does anyone have another idea ?

Here is what I get when I launch my applet using java 7u45 :

Code: [Select]
Loading Texture...from InputStream
Software renderer disposed
Using LWJGL's AWTGLCanvas
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.lwjgl.util.applet.AppletLoader$4.getPermissions(AppletLoader.java:1206)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.threed.jpct.GLHelper.findMode(GLHelper.java:67)
at com.threed.jpct.AWTGLRenderer.init(AWTGLRenderer.java:59)
at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:1134)
at com.threed.jpct.FrameBuffer.enableGLCanvasRenderer(FrameBuffer.java:723)
at com.faceausud.tm3d.TopoMapApplet.init(TopoMapApplet.java:53)
at com.faceausud.neouvielle.NeouvielleApplet.access$0(NeouvielleApplet.java:1)
at com.faceausud.neouvielle.NeouvielleApplet$MainPanel$1$1.run(NeouvielleApplet.java:74)
Caused by: java.lang.NullPointerException
at sun.plugin2.applet.Plugin2ClassLoader.loadAllowedCodebases(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getPermissions(Unknown Source)
... 22 more
Exception in thread "Thread-18" java.lang.ExceptionInInitializerError
at org.lwjgl.Sys.createImplementation(Sys.java:124)
at org.lwjgl.Sys.<clinit>(Sys.java:111)
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
at com.threed.jpct.GLHelper.findMode(GLHelper.java:67)
at com.threed.jpct.AWTGLRenderer.init(AWTGLRenderer.java:59)
at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:1134)
at com.threed.jpct.FrameBuffer.enableGLCanvasRenderer(FrameBuffer.java:723)
at com.faceausud.tm3d.TopoMapApplet.init(TopoMapApplet.java:53)
at com.faceausud.neouvielle.NeouvielleApplet.access$0(NeouvielleApplet.java:1)
at com.faceausud.neouvielle.NeouvielleApplet$MainPanel$1$1.run(NeouvielleApplet.java:74)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "org.lwjgl.util.Debug" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:454)
at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:452)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.LWJGLUtil.getPrivilegedBoolean(LWJGLUtil.java:452)
at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:265)
... 10 more


I agree this is more a LWJGL issue than a JPCT bug, but my LWJGL forum account is still awaiting admin approval...

Thanks in advance guys !

38
Support / Re: Transparent plane and Picking
« on: August 13, 2013, 11:56:03 pm »
Ok I see, maybe I'll try to make my own picking system one day but I have to learn a lot of things first...

Thanks for your answer !

39
Support / Transparent plane and Picking
« on: August 13, 2013, 12:01:19 pm »
Hi,


After my Transparent plane and Polyline overlap problem, I'm trying to pick my transparent billboards.
Picking itself seems to work well on billboards, but my concern is once more about transparency. When I pick a plane on a transparent area of its texture, it is considered as picked anyway.
This behaviour was expectable and is pretty logical, but I would need my planes not to be picked on their transparent areas.

Do you think there is a way to do it using jPCT picking methods, or I'll rather have to implement it from scratch by myself ? If so, how to check the right picked color of an object in order to check if it is completely transparent ?


Thanks in advance, regards,


Sylvain

40
Support / Re: Transparent plane and Polyline overlap
« on: August 01, 2013, 01:52:37 pm »
Ok so this trick is fine for me, thanks.

41
Support / Re: Transparent plane and Polyline overlap
« on: August 01, 2013, 12:16:47 pm »
Hi, I tried what you suggested, using a second world for only transparent objects, and it works great !

Is it the correct way to do it ?

Code: [Select]
fb.clear(back);
world.renderScene(fb); // my initial world
world2.renderScene(fb); // my world for transparent billboards
world.draw(fb);
world2.draw(fb);
fb.display();

What about the performance hit of this method in terms of process and memory ? I didn't notice any change but I'm testing it on a Galaxy S3.

Anyway, thanks a lot for your help !

42
Support / Re: Transparent plane and Polyline overlap
« on: August 01, 2013, 02:50:49 am »
Ok what I just said is stupid, if I use a "green screen" or any other color, it would be the same problem because we would still be dealing with transparent objects.
Sorry I'm not familiar at all with rendering concepts, it's very new for me.

43
Support / Re: Transparent plane and Polyline overlap
« on: August 01, 2013, 02:22:03 am »
Hi, thanks a lot for your answer.

Well, if you want to have an idea of how many transparent planes I need :



Is there a way to create transparency without alpha channel, using the setTransparency method but with another color than #0f0f0f ? I mean like if we were using a green screen ? It would be great because I need black color for my textures but I don't need some colors like green. I'll try to replace black pixels with a color a very little bit brighter than #0f0f0f. But antialiasing might ruin it all...

I'll keep you in touch if I find a solution, thanks again !

44
Support / Transparent plane and Polyline overlap
« on: July 31, 2013, 11:45:06 am »
Hi,


I'm very new with jPCT and this is my first post.
So first congratulations for this great framework, easy to use even for a person not familiar at all with opengl like me, I really appreciate !

I'm planning to develop a kind of "virtual hiking guide" (for a french mountain), showing pathes with polylines and interest points (like mountain huts, lake names, ...) using plane billboards.
It works great and even an old android phone with sdk 2.3.3 can handle my 20000 polygons terrain, which is awesome. To be honest I've tried first another android opengl framework but it couldn't take that amount of polygons. JPCT seems the most performant one !

Anyway, the point is I have a transparency problem with my planes. When a polyline is behind a billboard plane, it is displayed as if it was "in front" of the plane.
I gess the problem comes from my plane transparency, which I have set this way (I need alpha channel) :

Code: [Select]
Object3D plane = Primitives.getPlane(1, size);
if(TextureManager.getInstance().containsTexture(textureName) == false)
TextureManager.getInstance().addTexture(textureName, new Texture(bitmap, true));
plane.setTexture(textureName);
plane.setBillboarding(true);
plane.setTransparency(100);

Note that I also scale the planse according to their distance to camera to make them look always at the same size on the screen, but I don't think it has a link with the issue.

And here is how I create my polylines :

Code: [Select]
Polyline pathLine = new Polyline(pointsArray, color);
pathLine.setWidth(8f);
world.addPolyline(pathLine);

Thanks in advance, and tell me if you need a screenshot, I don't know if what I'm saying is clear, my native language is french.

Pages: 1 2 [3]