npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

unity-export-scene-to-obj

v1.0.0

Published

Export scene (including objects and terrain ) or fbx to .obj file for Unity.

Downloads

1

Readme

ExportSceneToObj

一款用于导出场景(包括GameObjectTerrian)或到.fbx模型.obj文件的Unity插件。

功能

  • 支持导出物件和地形
  • 支持自定义裁剪区域
  • 支持自动裁剪功能
  • 支持单个选择导出
  • 支持导出.fbx模型

截图

用法

  • 通过下载源码或unitypackage包导入到你的项目中(放在Assets目录下)。如果你是2018.3及以上版本,强烈建议通过Package ManagerGit来导入包(也可以下载后本地安装包):

    1. 打开Packages目录下的manifest.json文件,在dependencies下加入:
       "com.monitor1394.exportscenetoobj": "https://github.com/monitor1394/ExportSceneToObj.git",
    1. 回到Unity,可能会花1分钟左右进行下载和编译,成功后就可以开始使用了。
    2. 如果要删除ExportSceneToObj,删除掉1步骤所加的内容即可。
    3. 如果要更新ExportSceneToObj,删除manifest.json文件的lock下的com.monitor1394.exportscenetoobj相关内容即会从新下载编译。
  • 如果要自定义裁剪区域的话,场景中增加空GameObject用于表示裁剪区域(需要左下角和右上角两个空GameObject),并修改代码中CUT_LB_OBJ_PATHCUT_RT_OBJ_PATH为对应的路径

  • Unity的菜单栏上有ExportScene菜单即可

  • 怎么单独导出.fbx模型?

    1. .fbx拖到场景中
    2. Hierarchy试图中选中fbxGameObject,右键执行ExportScene --> ExportSelectedObj单独导出即可

其他

  1. 目前判断物件是否在裁剪区域只是判断物件的坐标是否在区域内,还没有实现物件边界裁剪。
  2. 只有包含MeshFilterSkinnedMeshRendererTerrian的物件才会被导出。

问题

  1. 为什么将脚本放入项目中后菜单栏还是看不到ExportScene菜单项?
    答:脚本文件放到正确的目录,同时要检查是否有其他脚本有报错没有编译通过,有报错时先要处理报错。

  2. 为什么导出的obj文件在Maya3D软件中显示正常,但在3d Max显示异常?
    答:3d Max导入设置中勾选Import as single mesh选项。

觉得有用的朋友帮忙点个star吧

参考

  1. ExportOBJ
  2. TerrainObjExporter