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.


Topics - zoalord12

Pages: [1]
1
Hi

First off, I just want to thank  "EgonOlsen" for all his help. Thanks to him, I was able to complete a personal project that i just wanted to. It took me 3 months to do the 95%, and 1 more month to do the last 5%.

The only engine that i could use was JPCT.

Here is the app: https://play.google.com/store/apps/details?id=activity.shop3d.org.shop3d
I created some promo stuff as well, like a video and some advertisements.

It allows the user to modify a 3D model using an Android app and simple place an order to 3D print your creation and then get it shipped to your house :)

Comments are welcome.

More Sample pictures: https://drive.google.com/open?id=0BzkvMWM-w80JZ1VkY2h4TG15eWc




2
Hi I just needed some clarification regarding the serialization and deserialization of object3D

Scenario:

So i have an object3D model with 1 color (RGB = 1,0,0). I see that a texture is created on load with something like obj-255:0:0, and its accessible through the Texture Manager after I serialize on one platform (i-e windows) and deserialize on another (Android).
If i have the same object, textured with abc.jpg, will that texture be created on the platform when i DE-Serialize the object ?

So what im essentially asking i are textures serialized along with the object, and created when they are de-serialized ?

thanks

3
I cant get my shader to work, but the default shader works great
i want to change the UV for a texture, but dont want to write my own shader

is that possible ?

4
Support / Object3D color not being read in shader
« on: November 19, 2015, 09:14:36 pm »
Hi all,

Reading an Object3D,
when i render it as it is , the "green" color shows up on the mesh since its coming from the material file, (I loaded from an .obj + .mtl)

When I add a shader, I cant get the correct vertex color in my attribute variable.
The normals come through fine though, using this method.
PLEASE HELP. thanks in advance



// VERTEX SHADER   -----------------------------------------------------------------------

attribute vec4 additionalColor;

attribute vec4 position;
attribute vec3 normal;
attribute vec4 color;

uniform mat4 modelViewMatrix;
uniform mat4 modelViewProjectionMatrix;

varying vec4 myColor;
void main(void)
{

  myColor = color;

  // I also tried this one but neither one works.
  myColor = additionalColor;

  gl_Position = modelViewProjectionMatrix * position;
}


// FRAGMENT SHADER  ------------------------------------------------------------------

precision mediump float;
varying vec4 myColor;

void main ()
{
   gl_FragColor = vec4(myColor.xyz, 1);
}






5
Hi

Im serializing stuff on windows and reading it on Android

I serialized in  JPCT 1.15Beta3
I deserialzie in JPCT-AE 1.0 , there is a version mismatch and it wont deserialize Object3D

it throws the exception
java.lang.RuntimeException: [ 1447896135952 ] - ERROR: Can't deserialize object: [ 1447896135950 ] - ERROR: Unsupported version: 2023511133

Please help, i looked for the older version of JPCT but i cant find it anywhere :'(

Pages: [1]