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

Pages: [1] 2
1
Support / Re: Parallax Mapping example
« on: April 03, 2013, 09:56:39 pm »
I  was about to ask how to make texture repeatable but i find the solution:

this
   vec2 newTexCoord = (texCoord + offset)  ;

change to this:

        vec2 newTexCoord = (texCoord * scaleValue + offset)  ;

putting here if i forget and i couldn't find this on forum.
question: How to make the bump also be repeatable

2
Support / Re: Parallax Mapping example
« on: April 03, 2013, 08:55:15 am »
what do you think about  clone object and dispose original object from world, reload settings from my wrapper for cloned object  and then put object with parallax mapping to world?

3
Support / Parallax Mapping example
« on: April 03, 2013, 12:20:52 am »
 It's working fine , but...

Is it possible to add mapping after the object is rendered in the word.

more clearly:
1. I have the scene
2. I'm adding the primitive "plane" object.
3. I click on the button to add parallax mapping.

thx in advance.


 

4
Support / Re: FPP view
« on: March 31, 2013, 09:15:53 am »
First person perspective:
i found this which was thing i was looking.

http://www.jpct.net/wiki/index.php/FPS-like_camera_controls

5
Support / Re: setSortOffset?
« on: March 31, 2013, 12:36:17 am »
im stupid.
i set transparency to all object, after loading. 

6
Support / FPP view
« on: March 31, 2013, 12:34:07 am »
Hi,
i have problem with setting FPP view style.

When i rotate camera around X axis (look down/ up) and next i want to rotate around Y axis (left, right). the rotation is around Y axis of camera which were transformed allready. how to perform this properly.

7
Support / Re: 3d model limitations
« on: March 04, 2013, 06:32:26 pm »
i had crash with 4096*4096 on galaxy s plus.

8
Support / setSortOffset?
« on: March 03, 2013, 06:25:53 pm »
When i load object from 3ds file everything is great, but when i serialize and deserialize i have this problem with transparency and setSortOffset?.

I think the problem is with the 3ds file it has some information that is lost after deserialization and after deserialization it has errors in graphic (transparent some polygons in some angle).

and when i try set sort offset (-2000f)(dont know why must be negative ) on the transparent objects in scene they are visible even shadowed by other textures.

issue simillar to this one:
http://www.jpct.net/forum2/index.php/topic,1292.msg8846/topicseen.html#msg8846

9
Support / Re: serialize related questions
« on: March 03, 2013, 02:04:10 pm »
yeah that was the problem. thx!

10
Support / Re: serialize related questions
« on: March 03, 2013, 12:37:30 am »
Manifest-Version: 1.0
Created-By: EgonOlsen
Version: 1.15beta3

well i uploaded the newest version: 2012-12-18 -  still the same. 

Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 17426
   at com.threed.jpct.Object3D.copy(Object3D.java:904)
   at com.threed.jpct.Object3D.<init>(Object3D.java:776)
   at com.threed.jpct.Object3D.cloneObject(Object3D.java:3518)

there are lines now :D

11
Support / Re: serialize related questions
« on: March 02, 2013, 09:20:38 pm »
after loading serialized object, I am trying to copy object and i getting exception in my face. Someone could tell me why?

Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 3518
   at com.threed.jpct.Object3D.copy(Unknown Source)
   at com.threed.jpct.Object3D.<init>(Unknown Source)
   at com.threed.jpct.Object3D.cloneObject(Unknown Source)

12
Support / Re: serialize related questions
« on: March 02, 2013, 08:10:33 am »
About 3 :

I have the hero and monster object the all of them have they own object3d. and if i save the object3d[] array of all of them(as one array) and hero objects and monster objects i save as gameObjects[] array, then when i loading i need to create mapping with the heros , monster objects and objects3d ,first i thought that id is unique, but isn't. Do you have any ideas? I can use name field for this, but i would like to leave this for display purpose. 

Thanks for help

13
Support / serialize related questions
« on: March 01, 2013, 12:05:46 am »
1. is serialize() save transformedCenterData and size information?
2. is there a way to force save this data
3. is ID change when deserialize and add to world? If not, what you suggest to make relation with another data .. like game Data?
4. is call compile and build,  clear some information? (e.g. position, rotation)

sorry for the stupidity

14
Support / Re: Conversion to Dalvik format failed with error 1
« on: February 17, 2013, 12:47:09 pm »
yesterday i had the same problem my solution:

Project 1 (non android project):
[] jpct.jar
src,data etc.

Project 2 android (Order and export -eclipse juno ):
[checked] Android 4.2
[checked] Android Dependency
[checked] Project 1
[checked] jpct-ae.jar (/libs/)
src, data. etc.

in my case the most important thing was that the jpct-ae must be after the android lib and project 1 reference. Project 1 must be checked.


15
Support / Re: Use saved object3D in android and desktop project
« on: February 16, 2013, 10:42:40 pm »
thanks for hints !! my bad, by mistake i deleted crucial line in my code ... well it's good moment to write some tests.

Pages: [1] 2