chetto1983 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Inverse perspective #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello

Unfortunate misunderstanding. Models are visualized with an inverted 
perspective: far edges larger than nigh. This is well illustrated in the 
examples of "sandiego", "map3d", "iphoneg4".
Using the latest version.
Can you please tell how to fix it.

Thank you.

Original issue reported on code.google.com by v.alifa...@gmail.com on 29 Sep 2013 at 7:35

GoogleCodeExporter commented 8 years ago
That is not inverted perspective but orthographic projection. Jsc3d's model 
transformation is based on orthographic projection (which is also adopted in 
many CAD applications) in which no perspective is applied and the projected 
length of an edge will not change when it moves along the viewing direction. 
This is different with how human eyes actually work, and thus it causes visual 
error especially on strip objects.

Jsc3d does not support other projection methods (such as perspective projection 
which produces more natural result for our eyes) at this moment. Please refer 
to http://en.wikipedia.org/wiki/Graphical_projection for details of graphic 
projections.

Original comment by Humu2...@gmail.com on 29 Sep 2013 at 1:21

GoogleCodeExporter commented 8 years ago
Understood. Thank you.

Original comment by v.alifa...@gmail.com on 29 Sep 2013 at 1:36

GoogleCodeExporter commented 8 years ago
for the users interested in having a perspective projection for thier scene i 
will come asap with a final release.

For now I uploaded here just a simple demo based on JSC3D 1.6.5 having these 
changes:

1. perspective projection
2. transparent background for the scene

Because I didn't wrote the code very nice and I just altered the current code 
of the jsc3D I'll come back in the next days with an updated version with a 
better quality code and more refined.

Original comment by vasile.d...@gmail.com on 4 Jan 2014 at 9:31

Attachments:

GoogleCodeExporter commented 8 years ago
Hi!

Thanks for the submitted project.
Unfortunately, your example with 3DS model does not work.
I tried to open in IE-11 and Chrome (Windows 7).
Then I tried your version jsc3d.js to models OBJ.
Works, but the quality is not satisfactory.
With interest forward to the final release.

Regards, Valery.

Original comment by v.alifa...@gmail.com on 9 Jan 2014 at 3:32

GoogleCodeExporter commented 8 years ago
Thank you for the submitted contribution. I've been checking back time to time 
the last few months and interested in your work on perspective projection.

Original comment by tgord...@printnow.com on 18 Apr 2014 at 12:34

GoogleCodeExporter commented 8 years ago
the jsc_viewer.setParameter('Background','off'); doesnt make the background 
transparent.... any solution for making the background transparent?

Original comment by pallaviv...@gmail.com on 3 Dec 2014 at 4:47

GoogleCodeExporter commented 8 years ago
This feature is not supported by r1.6.5. You could try the latest version 
instead. Please get it from the repository.

Original comment by Humu2...@gmail.com on 4 Dec 2014 at 5:13

GoogleCodeExporter commented 8 years ago
hello friends,
I'm New Here. It is ready the new version with support for perspective in obj 
models?
nice job.
thx

Original comment by comercio...@gmail.com on 14 Feb 2015 at 2:38