Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm unable to render the textures and colour of 3d car Models?? #24

Open
SarathChandra0025 opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@SarathChandra0025
Copy link

Hi there , I’ve encountered a bug while working with 3D models in Flutter on Linux. Specifically, the rendering of 3D models using " flutter_3d_obj "seems to be malfunctioning or not displaying as expected for a 3D model car......Unfortunate or fortunate it is working for other 3D models but not for car models....dont know why this is happening!!!!

Also sometimes it is showing flutter_3d_obj doesnt support nullsafety!!

Description: When attempting to render 3D models using flutter_cube, the models either fail to display or render incorrectly.This is only happening for car models and not for other 3D models.I thought there was some problem with the gltf/obj of car but it is not working for any car model....This is what took me here!!!!

Issue Details:

-Platform : Linux 20.04
-Flutter Version : 3.22.3
-Dart Version : 3.4.4

i'll provide you my code snipper here,

import 'package:flutter/material.dart';
import 'package:flutter_3d_obj/flutter_3d_obj.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('3D Model Example')),
body: Center(
child: My3DModelWidget(),
),
),
);
}
}

class My3DModelWidget extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return Container(
width: 300,
height: 300,
child: Flutter3dObj(
modelPath: 'assets/model.obj',
texturePath: 'assets/model.mtl',
),
);
}
}

.........................................................................
Can you please resolve this !!!

@SarathChandra0025 SarathChandra0025 changed the title I unable render the textures and colour of 3d car Models?? I'm unable render the textures and colour of 3d car Models?? Sep 13, 2024
@SarathChandra0025 SarathChandra0025 changed the title I'm unable render the textures and colour of 3d car Models?? I'm unable to render the textures and colour of 3d car Models?? Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant