Comments (6)
Original comment by [email protected]
on 23 Jun 2009 at 2:36
from o3d-obsolete.
The error is a bug in the sketchup exporter. It's exporting the outlines as
<lambert>
but <lambert> requires normals and sketchup is not supplying normals. Sketchup
can
fix this by exporting <constant> for the lines. I tried this manually by
editing the
.dae file inside the .kmz file and it worked (and I got a box with outlines)
Other solutions:
1) We can change the o3dConverter to do an "if the file is .kmz then attempt to
change any material used by a primitive that is marked to draw lines instead of
triangles as constant" and possibly a switch to turn that off if they ever
decide to
fix sketchup. (If they did supply normals then lambert will work)
2) make o3djs.pack.prepare pack generate normals if they are missing. This is
not a
very good solution because (a) it could be incredibly slow in JavaScript and (b)
there is not enough information to make normals (c) it's not what the file says
to do.
3) make the shader builder generate constant even if the file calls for
lambert. This
is also not a very good solution because (a) it would mean the user will not
get what
they asked for. If they have 2 models, each using the same lambert material
called
"wood" and one of those models is missing nornals then we'd have to generate 2
materials even though the file says there is only one material. The user then
searches for the material "wood" expecting only 1 and finds 2 making is app not
work.
(b) it's not what the file says to do.
So, I guess, unless we can get new version of Sketchup asap I suggest solution
#1. It
actually has the similar issues as solution #3 in that the file asked for
lambert but
we are switching it to constant. If that material is used in 2 places and one of
those places has normals it will not be display with lambert since the material
is
forced to constant but at least it keeps them out of the main code so they only
effect the sketchup path.
Original comment by [email protected]
on 23 Jun 2009 at 3:05
from o3d-obsolete.
The issue is the lines.
Sketchup outputs lines for the outlines and marks them as using a lambert
shader. A
lambert shader REQUIRES normals but there are no normals in the file. A fix is
being
worked on.
Original comment by [email protected]
on 24 Jun 2009 at 11:26
from o3d-obsolete.
Thank you much, gmangoog. Until the fix is done, I'll take a look in the
Sketchup-exported collada and see if there's enough information in there for me
to
put together a perl script to massage the correct <lambert>s into <constant>s.
Thanks again!
--John
Original comment by [email protected]
on 25 Jun 2009 at 1:43
from o3d-obsolete.
Original comment by [email protected]
on 26 Jun 2009 at 7:02
- Changed state: Started
from o3d-obsolete.
This is fixed. Download the latest converter.
Original comment by [email protected]
on 11 Jul 2009 at 6:16
- Changed state: Fixed
from o3d-obsolete.
Related Issues (20)
- Can not load model with texture
- Textareas and text inputs do not work when o3d rendering is performed HOT 2
- Slow loading performance in Chrome
- TypeError: Cannot read property 'length' of undefined
- Where can I find the souce code for browser plugin ?
- Failed build on Linux.
- problem with shadow-maps
- o3djs.flat_math.matrix4.setUpper3x3 wrong indexing
- Broken link Docs::Development Guide::Materials
- Works in all Browsers but IE
- o3d does not build properly on ChromeOS HOT 2
- no plugin for download
- It's not possible to load any COLLADA model
- Broken link
- Patch for /trunk/samples/bitmap-draw-image.html
- slider-mini.js
- 1603
- google earth installer error cone1603
- error 1603
- 1603
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from o3d-obsolete.