Blender ошибка при импорте obj

Imported objects from other file formats, are often times really small, off centered, or very far away from scene origin, compared to the default scene scale.

First step is to make sure anything was actually imported. Look in the Outliner for new objects under current collection (geometry should be of mesh type). If there are any, use the Outliner to select them.

enter image description here

Then with the mouse over the 3D View press the Numpad . (Period) key, or go to View > Frame Selected for 2.8+, to view selected objects.
This will zoom in tightly on the selected object.

enter image description here

If the objects are too small or too big in relation to default scene scale you may still be able to see them due to being outside the view distance bounds.

If that is the case you may been to adjust clipping distances, either for the viewport, camera or both.

Working with scene scales too large or too small may lead to float point precision issues. Blender and Cycles render are set up to work best with 1 Blender Unit = 1 Meter, both in terms of lighting and physics. If your objects are in millimetres, Kilometres or very far from this scale range you may want to scale them up or down to fit roughly in that scale range, to avoid future issues.

0 / 0 / 0

Регистрация: 16.11.2013

Сообщений: 70

1

16.10.2014, 08:25. Показов 14768. Ответов 3


Студворк — интернет-сервис помощи студентам

Подскажите пожалуйста, почему Blender выдает ошибку при импорте объектов, допустим при попытке импорта объекта в формате (.obj) вылетает такая ошибка

Миниатюры

Ошибка при импорте объектов в Blender
 



0



Programming

Эксперт

94731 / 64177 / 26122

Регистрация: 12.04.2006

Сообщений: 116,782

16.10.2014, 08:25

Ответы с готовыми решениями:

Ошибка при импорте
Привет
Подскажите пожалуйста что за ошибка как ее можно решить?
Notice: Undefined index:…

Ошибка при импорте БД
Значит делал я сайт на локальном сервере xampp… пришла пора заливать его на хостинг… выбрал…

Ошибка при импорте БД
Приветствую!
Если это важно, то пытаюсь XML от готовой темы wordpress импортировать к себе.
При…

Ошибка при импорте
Добрый день, вчера я хотел перенести сайт на другой хостинг, но у меня возникает проблема при…

3

0 / 0 / 0

Регистрация: 16.11.2013

Сообщений: 70

16.10.2014, 11:14

 [ТС]

2

Вопрос отпал, сам разобрался.



0



Модератор

2892 / 1750 / 178

Регистрация: 19.02.2011

Сообщений: 6,443

16.10.2014, 11:26

3

И в чем была причина?



0



0 / 0 / 0

Регистрация: 07.12.2015

Сообщений: 1

07.12.2015, 19:06

4

Столкнулся с аналогичной проблемой, долго думал… потом опомнился))) Проблема проста — нечего было выпендриваться и указывать недопустимые символы в пути к файлу (т.е. путь в папку, в которой хранились файлы сохранений), апострофы и т.д. Обычное переименование папки лечит проблему мгновенно)



0



You stumbled upon a curious problem with filename handling in the .obj format, that isn’t well defined in the specification. I will discuss this with the Blender devs, perhaps the importer needs small adjustments to parse the file correctly under these specific circumstances. Since it worked in 2.79b it can be considered a regression.

TL;DR The handling for filenames with blanks isn’t well defined in the .obj format specification and Blender expected a different format than what was provided in your file.


The Problem

The .obj is a text format for storing 3D models. The format contains various attributes that describe the geometry of the model. Typically the .obj is accompanied by a .mtl which describes the material and textures applied to the model. In order to keep track which files belong together, the .obj may contain a mtllib attribute followed by the filename of the .mtl.

Usually the beginning of an .obj would look something like this:

# Blender v2.80 (sub 74) OBJ File: ''
# www.blender.org
mtllib test.mtl
o Cube
v 1.000000 1.000000 -1.000000
v 1.000000 -1.000000 -1.000000

In case of your file it is:

# 
mtllib "tree stump1 original model.mtl"
usemtl tree_stump1_original_model
v 4.136163 -1.200306 -10.798826 0.113725 0.152941 0.141176
v 4.140683 -1.205297 -10.794383 0.117647 0.156863 0.145098

Notice that the filename contains quotations marks. This is causing the problem. The software you used to export this model quoted the filename to avoid confusion on how to interpret the filename. While this is common practice in other file formats the specification for .obj doesn’t mention quoting filenames and says specifically:

Blank space and blank lines can be freely added to the file to aid in formatting and readability.

Which can be interpreted as blanks in filenames can be stored as is, which is precisely what Blender does. Unfortunately Blender’s importer doesn’t expect the quotation marks in the filename therefore misinterpreting the correct filepath. This results in the aforementioned error in your question.


The Fix

Open the .obj file in a text editor of your choice an remove the quotes and save. It should look like this:

# 
mtllib tree stump1 original model.mtl
usemtl tree_stump1_original_model
v 4.136163 -1.200306 -10.798826 0.113725 0.152941 0.141176

The file can now be imported by Blender.

Blender Artists Community

Loading

Error trying to import obj model

Traceback (most recent call last):

File «C:Program FilesBlender FoundationBlender 2.822.82scriptsaddonsio_scene_obj__init__.py», line 146, in execute

return import_obj.load(context, **keywords)

File «C:Program FilesBlender FoundationBlender 2.822.82scriptsaddonsio_scene_objimport_obj.py», line 1180, in load

material_libs |= {os.fsdecode(f) for f in filenames_group_by_ext(line.lstrip()[7:].strip(), b’.mtl’)

File «C:Program FilesBlender FoundationBlender 2.822.82scriptsaddonsio_scene_objimport_obj.py», line 1180, in <setcomp>

material_libs |= {os.fsdecode(f) for f in filenames_group_by_ext(line.lstrip()[7:].strip(), b’.mtl’)

File «C:Program FilesBlender FoundationBlender 2.822.82pythonlibos.py», line 823, in fsdecode

return filename.decode(encoding, errors)

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc2 in position 9: invalid continuation byte

location: <unknown location>:-1

Does anyone have a clue how to fix that?

Возможно, вам также будет интересно:

  • Blender отчет об ошибках
  • Blender запекание нормалей ошибки
  • Blender выдает ошибку opengl
  • Blender gis get srtm ошибка
  • Blade soul blade and soul ошибка 1073

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии