Code Monkey home page Code Monkey logo

Comments (16)

mrdoob avatar mrdoob commented on May 5, 2024

Nope, not yet. Collada files tend to be pretty big and every software exports them slightly differently. I usually prefer exporting to custom format. Like the blender exporter. But yeah, would be nice to have.

from three.js.

strelz avatar strelz commented on May 5, 2024

Sketchup->collada->blender->obj->3js works fine ..instructions inside the python object converter in the distribution - utils/exporters/convert_obj_threejs_slim.py

from three.js.

alteredq avatar alteredq commented on May 5, 2024

Sketchup->collada->blender->obj->3js works fine

It's also possible to export Blender -> Three.js directly, just for the moment only ascii format is supported and if you want to export multiple meshes as one object, you will need to merge them before (object->join).

Though I plan to add multiple-selection / scene format to Blender exporter soon.

from three.js.

strelz avatar strelz commented on May 5, 2024

Hey Alterdq!,

Thanks, we are using the somewhat longer model conversion chain because we want to produce both high and low poly versions of every model.

Just to introduce ourselves. Tulio and I are professors at the University of Southern Mississippi. Our research group is about 15 students in
Computer Science, Architecture, Art and Construction working on various projects to develop web-based Virtual Reality Applications for Simulation and Training.
We recently built a fairly large application in O3D but have been very disappointed with the performance of the final product and are looking to adopt three.js
which has the best performance of any webgl js library and has some really impressive examples.

One example we didn't see was shadow mapping? Any plans to produce an example? We would probably be willing to be willing to contribute some
getting started and pulled apart example wiki pages which we are working on anyway in exchange for a little nudge.

thanks

Andrew Strelzoff PhD
Associate Professor,
Assistant Director for Advanced Technology of USM Center for Logistics, Trade and Transportation, and
Director of Graduate Studies
School of Computing
University of Southern Mississippi

_DISCLAIMER_*************

  • Note: Privileged/Confidential information may be contained in this message *
  • and may be subject to legal privilege. Access to this e-mail by anyone other *
  • than the intended is unauthorized. If you are not the intended recipient (or *
  • responsible for delivery of the message to such person), you may not use, *
  • copy, distribute or deliver to anyone this message (or any part of its contents ) *
  • or take any action in reliance on it. The views, opinions, conclusions and other *
  • information expressed in this electronic mail are not given or endorsed by The *
  • University of Southern Mississippi unless otherwise indicated by an authorized *
  • representative independent of this message. This e-mail may NOT be construed *
  • as a proposal for work to be performed by Dr. Strelzoff, his students or research *
  • group at The University of Southern Mississippi. All correspondence pertaining *
  • to the development of research projects is of an informal and exploratory nature. *
    _DISCLAIMER_*********

From: alteredq [[email protected]]
Sent: Monday, March 14, 2011 6:16 PM
To: Andrew Strelzoff
Subject: Re: [GitHub] COLLADA import? [mrdoob/three.js GH-63]

Sketchup->collada->blender->obj->3js works fine

It's also possible to export Blender -> Three.js directly, just for the moment only ascii format is supported and if you want to export multiple meshes as one object, you will need to merge them before (object->join).

Though I plan to add multiple-selection / scene format to Blender exporter soon.

Reply to this email directly or view it on GitHub:
#63 (comment)

from three.js.

alteredq avatar alteredq commented on May 5, 2024

One example we didn't see was shadow mapping? Any plans to produce an example?

There are plans for dynamic shadows. But it will take some time to get there.

If you just need baked static shadows, there is already support for lightmaps using second set of UVs (for the moment only FBX converter produces this).

If you would like to give shadow maps a try in meanwhile, the most painless way is probably to use RenderTarget for rendering into FBO from point of view of light in a separate pass using MeshShaderMaterial to get encoded depth map (MeshDepthMaterial uses just single color component to look pretty but precision may not be enough).

Then in another render pass another MeshShaderMaterial would take this RenderTarget texture as parameter and render shadowed scene to the screen.

Structurally the most similar example to this should be depth-of-field one.

from three.js.

strelz avatar strelz commented on May 5, 2024

Hey Alteredq,

I have a couple of students working on facebook and youtube experiments with webgl who went nuts when they saw the three.js video material example. Their idea is to allow facebook users to create a 3.js scene with a video chosen from youtube which would then then appear in their facebook videos section.

Youtube doesn't officially allow scrapes off their videos so we would need to actually show the embedded youtube webpage on the 3.js material. Is this possible? Any examples we could have?

Andrew Strelzoff PhD
Associate Professor,
Assistant Director for Advanced Technology of USM Center for Logistics, Trade and Transportation, and
Director of Graduate Studies
School of Computing
University of Southern Mississippi

_DISCLAIMER_*************

  • Note: Privileged/Confidential information may be contained in this message *
  • and may be subject to legal privilege. Access to this e-mail by anyone other *
  • than the intended is unauthorized. If you are not the intended recipient (or *
  • responsible for delivery of the message to such person), you may not use, *
  • copy, distribute or deliver to anyone this message (or any part of its contents ) *
  • or take any action in reliance on it. The views, opinions, conclusions and other *
  • information expressed in this electronic mail are not given or endorsed by The *
  • University of Southern Mississippi unless otherwise indicated by an authorized *
  • representative independent of this message. This e-mail may NOT be construed *
  • as a proposal for work to be performed by Dr. Strelzoff, his students or research *
  • group at The University of Southern Mississippi. All correspondence pertaining *
  • to the development of research projects is of an informal and exploratory nature. *
    _DISCLAIMER_*********

From: alteredq [[email protected]]
Sent: Monday, March 14, 2011 6:16 PM
To: Andrew Strelzoff
Subject: Re: [GitHub] COLLADA import? [mrdoob/three.js GH-63]

Sketchup->collada->blender->obj->3js works fine

It's also possible to export Blender -> Three.js directly, just for the moment only ascii format is supported and if you want to export multiple meshes as one object, you will need to merge them before (object->join).

Though I plan to add multiple-selection / scene format to Blender exporter soon.

Reply to this email directly or view it on GitHub:
#63 (comment)

from three.js.

alteredq avatar alteredq commented on May 5, 2024

@strelz Maybe you could reply with mails without signature and includes of old posts? GitHub makes big mess from this :(. For posting comments to issues the best is to use GitHub website directly.

Youtube doesn't officially allow scrapes off their videos so we would need to actually show the embedded youtube webpage on the 3.js material. Is this possible? Any examples we could have?

This can be tricky:

a) normal YouTube videos are Flash, there is I think also some experimental version of YouTube which uses HTML5 videos, so maybe these could be used

b) there is "same origin" security restriction for accessing content from canvas. In some other experiment, just to be able to manipulate 2d images (submitted by users as urls) in 2d canvas I had to proxy them through my server.

This may be problem for videos, you would need to pass them through your server. I don't know, you would need to try if WebGL could read videos located at other server (then the location of your HTML / JS).

from three.js.

strelz avatar strelz commented on May 5, 2024

Alteredq and three.js team,

  1. streaming to the video tag seems to be no problem - see this sample http://bigcat.cs.usm.edu/~strelz/cycle11_three/examples/webgl_streaming.html
  2. for youtube, the jquery media player 'jmedia' seems to be able to wrap up a youtube embed as a html5 video tag - see here - http://www.protofunc.com/jme/demos/youtube.html

I copied one student from my class and one from my research group who are both exploring video in webgl - I'll get them both to try it - poke poke

thanks for the advice

from three.js.

alteredq avatar alteredq commented on May 5, 2024
  1. streaming to the video tag seems to be no problem - see this sample http://bigcat.cs.usm.edu/~strelz/cycle11_three/examples/webgl_streaming.html

This is cool. Thanks for trying it out. This opens a lot of possible use cases.

I checked specs and it seems "same origin" problem comes only when you use readPixels (to get data back to JavaScript layer):

http://www.khronos.org/registry/webgl/specs/latest/#4.2

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Hmm... this is very interesting... :)

from three.js.

strelz avatar strelz commented on May 5, 2024

Mr D,

Hey thanks, We have to get replication of avatars, physics, and fancy terrain ported over from our o3d application and work a bit on basics of save and load and then we'll be ready for advanced ideas. The students are all fired up by the idea of making a facebook ap which gives the user a virtual world in which they can play preset videos for friends and visitors in a shared environment.

Andrew Strelzoff PhD
Associate Professor,
Assistant Director for Advanced Technology of USM Center for Logistics, Trade and Transportation, and
Director of Graduate Studies
School of Computing
University of Southern Mississippi

_DISCLAIMER_*************

  • Note: Privileged/Confidential information may be contained in this message *
  • and may be subject to legal privilege. Access to this e-mail by anyone other *
  • than the intended is unauthorized. If you are not the intended recipient (or *
  • responsible for delivery of the message to such person), you may not use, *
  • copy, distribute or deliver to anyone this message (or any part of its contents ) *
  • or take any action in reliance on it. The views, opinions, conclusions and other *
  • information expressed in this electronic mail are not given or endorsed by The *
  • University of Southern Mississippi unless otherwise indicated by an authorized *
  • representative independent of this message. This e-mail may NOT be construed *
  • as a proposal for work to be performed by Dr. Strelzoff, his students or research *
  • group at The University of Southern Mississippi. All correspondence pertaining *
  • to the development of research projects is of an informal and exploratory nature. *
    _DISCLAIMER_*********

From: mrdoob [[email protected]]
Sent: Thursday, March 17, 2011 11:01 PM
To: Andrew Strelzoff
Subject: {Spam?} Re: [GitHub] COLLADA import? [mrdoob/three.js GH-63]

Hmm... this is very interesting... :)

Reply to this email directly or view it on GitHub:
#63 (comment)

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

strelz: Signature is a fail... :(
Maybe you're not seeing what's going on... take a look at this:

#63 (comment)

from three.js.

strelz avatar strelz commented on May 5, 2024

sorry, I'll try to remember to remove it when communicating with you guys - its a university requirement

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Try not to reply by email then :)

from three.js.

 avatar commented on May 5, 2024

For collada i use Scenjs. Its very god and can handel the collada on the server or client.
the collada is converted to a JSON serialised format, so it can be "run" on the client.

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

r44 finally has some collada support :)

from three.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.