Issue with exporting Blender model to THREE.JS in .dae format causing display errors

After creating a "cloud" in blender with the help of the "cloud generator add-on", I exported it to three.js in ".dae" format:

var modelname="cloud_0";

var object1 = new PinaCollada('cloud_0', 100);
scene.add(object1); 
var object2 = new PinaCollada('cloud_0', 100);
scene.add(object2);

function PinaCollada(modelname, scale) 
{

var loader = new THREE.ColladaLoader();
var localObject;
loader.options.convertUpAxis = true;
loader.load( 'models/'+modelname+'.dae', function colladaReady( collada ) {
    localObject = collada.scene;
    localObject.scale.x = localObject.scale.y = localObject.scale.z = scale;
    localObject.updateMatrix();
} );
return localObject;
}

Although the objects are successfully imported, the clouds appear as geometrical blank shapes instead of their original form.

Any suggestions on how to fix this issue?

Update: I have included screenshots comparing the three.js scene with the original blender scene:

-blender: View here

-three.js: View here

Answer №1

Through my research and inquiries, I discovered that simulations and effects such as smoke and clouds cannot be exported due to a limitation within Blender rather than a problem with three.js. You can find more information on this topic here:

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The API call for useState is coming back with a response of an array

I'm currently facing a challenge with fetching and displaying data from an API. When I check the state variable called "dataFromApi" using console.log, everything seems to be working fine as I see an array of multiple objects being returned. However, ...

The AngularJS directive fails to display any content within its element children

Trying to retrieve the innerHTML of the selected node in options The <i class="before"></i> tag should display text from either the selected or the first option when the page loads, within the same group. However, only dropdowns with hardcoded ...

The class box3 is initialized with a specific parameter, yet min and max are set to Infinity

Attempting to initialize the box3 class in Three.js with this code should be straightforward. However, unexpected behavior is being experienced. The goal here is to set up a roomBox by using the provided code snippet. const roomBoxMin=new Vector3(0, 0, 0 ...

Can the discriminator be preprocessed in a zod discriminated union?

Is it possible to convert string formatted numbers to numbers before using a value in z.discriminatedUnion? Here is an example code snippet: import { z } from "zod"; const BrushColorEnum = z.enum( ["BLUE_SILVER", "GREEN_SILVER&q ...

AngularJS: How to detect the browser's refresh event

Can AngularJS detect when the user clicks the Refresh button on the browser? Is there a built-in method in the framework for developers to access? Thank you ...

Interactive table created with DataTables that automatically updates the dynamic JSON data source whenever changes are made to the table

Using the Datatables plugin, I am dynamically populating a table with HTML rendered from a JSON array. However, I need the table to update the model (datasource) stored client-side whenever an edit is made. When navigating to a new page on the table, it s ...

The integration of Angular 6 with AngularJS components fails to load properly in a hybrid application

Currently, I am in the process of upgrading a large AngularJS version 1.7.3 to a hybrid app using Angular 6. The initial phase involved converting all controllers/directives into an AngularJS component. Subsequently, I created a new Angular 6 project skele ...

The parameter is returning undefined, while the PHP select by ID is returning null

Can someone please assist me with this issue? I am trying to select and update data by id from a SQL database, but I am not getting the expected result. The PHP file is returning null. Upon checking in my developer tools, I noticed that the parameter code ...

Is it possible to switch states in Angular UI Router without altering the URL?

The feature of multiple nested views in the ui-router is quite convenient as it allows for seamless transitions between different states within an application. Sometimes, there may be a need to modify the URL while navigating through states, while at othe ...

Organizing lists with HTML unordered lists

Is it possible to sort list items by numbers within a strong tag using JavaScript code? The current code successfully sorts the numbers, but removes them from the div tag. (The JavaScript code used below is for sorting by Name and works properly when &apos ...

The error encountered in Heroku logs is due to a Mongoose error where the uri parameter passed to openURI() must be a string, but is

I've been encountering an issue while trying to deploy my project on Heroku. Despite attempting various methods, one error remains unresolved. Here is the snippet of code that I added: useNewUrlParser: true,useCreateIndex: true, app.use(express.urlen ...

Carousel Pagination: Using Titles Instead of Numbers

I am currently working on implementing a carousel pagination using the Caroufredsel plugin. I am looking to create unique custom Titles for each slide in the pagination, rather than using default numbers. My goal is to have completely different Titles fo ...

Updating the row by substituting the content of two columns with the data retrieved from the action class

In my JSP page, there is a table with a refresh button on each row. Upon clicking the refresh button, a JavaScript/AJAX call is made to an action class to retrieve the values of status and number of records for that row, which are then displayed in the cor ...

Troubleshooting issues with the Select List component in ReactJS

Having an issue with the select list as the onChange event is not triggering. Struggling to set the selected value from the list in the this.state variable. Any assistance on this matter would be greatly appreciated. class SelectActivity extends React.C ...

A type guard for generics in TypeScript

I'm dealing with a variable that can be either of type C1[] or C2<C1>[]. How can I create a type guard for this variable? interface C<T>{ key: string; secret: T; } private isC(d: Foo[] | C<Foo>): d is C<Foo>[] { ret ...

What causes React Router to render the Navigation to the <Home/> component when the userData is still available, but redirects to "/login" otherwise?

I'm currently developing a Note-taking application using React with React Router for navigation. For creating routes, I am utilizing createBrowserRouter(). Below is the code snippet: import './App.css'; import NoteList from "./componen ...

In JavaScript, the clearInterval function does not halt the execution of the

I am working with a JavaScript code that displays messages every 6 seconds using the setInterval function. Here is the code snippet: $(function () { count = 0; wordsArray = ["<h1>Offer received</h1>", "<h1>Offer reviewed</h1&g ...

Exploring the concept of Variable Scope within a jQuery promise

Picture yourself executing the following code snippet within a JavaScript function named Fetch. function Fetch(context) { var request = $.ajax({...}); request.done(function(response) { // It appears that context is accessible here and in scope. ...

How to access a particular tab in Bootstrap 5 using an external link

Is there a way to direct users to a specific tab upon clicking a link on another page? Check out the example below: <div class="products-btn"> <a href="products.html#pills-profile">view all</a> </div> On Pro ...

Python Selenium fails to retrieve table data

https://i.sstatic.net/3YLMW.png I am encountering an issue where the print statement at the end of my code returns NONE. I aim to store values at every 6th spot in each row, which is functioning correctly. However, when I attempt to print(self.mystr) at th ...