unity and native osx bundles and frameworks build from the same project now
This commit is contained in:
9
integrations/Unity3D/Assets/OBJ-IO/Examples/Meshes.meta
Normal file
9
integrations/Unity3D/Assets/OBJ-IO/Examples/Meshes.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1cec0b7c513af4f2985399042ae83c15
|
||||
folderAsset: yes
|
||||
timeCreated: 1465591252
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d2f76706cb1d54b54801e02c996080eb
|
||||
folderAsset: yes
|
||||
timeCreated: 1465591253
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9962569753c3d46ef836238f2aa6b33b
|
||||
timeCreated: 1465591475
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de5cfcc17119041818768dc28e0c3e4b
|
||||
timeCreated: 1465591253
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c4a7e93244894f7ea111b89b950bb85
|
||||
timeCreated: 1465591814
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
2354
integrations/Unity3D/Assets/OBJ-IO/Examples/Meshes/Teapot.obj
Normal file
2354
integrations/Unity3D/Assets/OBJ-IO/Examples/Meshes/Teapot.obj
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,77 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53158f4ed39ed53448df438bc212f7e8
|
||||
ModelImporter:
|
||||
serializedVersion: 19
|
||||
fileIDToRecycleName:
|
||||
100000: //RootNode
|
||||
100002: Teapot001
|
||||
400000: //RootNode
|
||||
400002: Teapot001
|
||||
2300000: Teapot001
|
||||
3300000: Teapot001
|
||||
4300000: Teapot001
|
||||
9500000: //RootNode
|
||||
materials:
|
||||
importMaterials: 1
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleRotations: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations: []
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 0.1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 0
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 1
|
||||
tangentImportMode: 4
|
||||
importAnimation: 1
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,83 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dacaee67ec5e14226b9ec02527c457b5
|
||||
timeCreated: 1465591475
|
||||
licenseType: Free
|
||||
ModelImporter:
|
||||
serializedVersion: 19
|
||||
fileIDToRecycleName:
|
||||
100000: Cube_Instance_0
|
||||
100002: //RootNode
|
||||
100004: Teapot001_Instance_0
|
||||
400000: Cube_Instance_0
|
||||
400002: //RootNode
|
||||
400004: Teapot001_Instance_0
|
||||
2300000: Cube_Instance_0
|
||||
2300002: Teapot001_Instance_0
|
||||
3300000: Cube_Instance_0
|
||||
3300002: Teapot001_Instance_0
|
||||
4300000: Cube_Instance_0
|
||||
4300002: Teapot001_Instance_0
|
||||
materials:
|
||||
importMaterials: 1
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleRotations: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations: []
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
importAnimation: 1
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
integrations/Unity3D/Assets/OBJ-IO/Examples/Scenes.meta
Normal file
9
integrations/Unity3D/Assets/OBJ-IO/Examples/Scenes.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de90c25035683439686941d132beb13c
|
||||
folderAsset: yes
|
||||
timeCreated: 1465591252
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
integrations/Unity3D/Assets/OBJ-IO/Examples/Scenes/Example.unity
Normal file
BIN
integrations/Unity3D/Assets/OBJ-IO/Examples/Scenes/Example.unity
Normal file
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8573b7b1c7256de4896b3054d17de1b7
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
integrations/Unity3D/Assets/OBJ-IO/Examples/Scripts.meta
Normal file
9
integrations/Unity3D/Assets/OBJ-IO/Examples/Scripts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 960be3fc0da534863bcaece34b55fe5b
|
||||
folderAsset: yes
|
||||
timeCreated: 1465591252
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
using UnityExtension;
|
||||
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
[RequireComponent(typeof(MeshFilter))]
|
||||
public class Example : MonoBehaviour
|
||||
{
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
private const string INPUT_PATH = @"Assets/OBJ-IO/Examples/Meshes/Teapot.obj";
|
||||
private const string OUTPUT_PATH = @"Assets/OBJ-IO/Examples/Meshes/Teapot_Modified.obj";
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------
|
||||
private void Start()
|
||||
{
|
||||
// Load the OBJ in
|
||||
var lStream = new FileStream(INPUT_PATH, FileMode.Open);
|
||||
var lOBJData = OBJLoader.LoadOBJ(lStream);
|
||||
var lMeshFilter = GetComponent<MeshFilter>();
|
||||
lMeshFilter.mesh.LoadOBJ(lOBJData);
|
||||
lStream.Close();
|
||||
|
||||
lStream = null;
|
||||
lOBJData = null;
|
||||
|
||||
// Wiggle Vertices in Mesh
|
||||
/*
|
||||
var lVertices = lMeshFilter.mesh.vertices;
|
||||
for (int lCount = 0; lCount < lVertices.Length; ++lCount)
|
||||
{
|
||||
lVertices[lCount] = lVertices[lCount] + Vector3.up * Mathf.Sin(lVertices[lCount].x) * 4f;
|
||||
}
|
||||
lMeshFilter.mesh.vertices = lVertices;
|
||||
*/
|
||||
// Export the new Wiggled Mesh
|
||||
if (File.Exists(OUTPUT_PATH))
|
||||
{
|
||||
File.Delete(OUTPUT_PATH);
|
||||
}
|
||||
lStream = new FileStream(OUTPUT_PATH, FileMode.Create);
|
||||
lOBJData = lMeshFilter.mesh.EncodeOBJ();
|
||||
OBJLoader.ExportOBJ(lOBJData, lStream);
|
||||
lStream.Close();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f3ab7cfdf40b84b41a7adc35c545c226
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user