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

[SofaMisc] Add a data repository at start-up time #402

Merged
merged 6 commits into from
Sep 22, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SofaMisc] add example for AddResourceRepository
  • Loading branch information
fredroy committed Sep 14, 2017
commit ab1c778a3134f9f0386ffa5dc3f5700a95c2c6b5
9 changes: 9 additions & 0 deletions examples/Components/misc/AddResourceRepository.scn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<Node name="root" dt="0.01">

<OglModel name="VisualModel" fileMesh="data/mesh/suzanne.obj" />

<AddResourceRepository path="./data/mesh" />
<OglModel name="VisualModel" fileMesh="suzanne.obj" translation="2 0 0"/>

</Node>
10 changes: 10 additions & 0 deletions examples/Components/misc/data/mesh/suzanne.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Blender MTL File: 'None'
# Material Count: 1

newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
Loading