Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
7c3de7d4
Commit
7c3de7d4
authored
17 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
niflib: vector bool solution + syncing
parent
70c72c2e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/obj/NiBillboardNode.h
+13
-0
13 additions, 0 deletions
include/obj/NiBillboardNode.h
src/obj/NiLinesData.cpp
+9
-2
9 additions, 2 deletions
src/obj/NiLinesData.cpp
with
22 additions
and
2 deletions
include/obj/NiBillboardNode.h
+
13
−
0
View file @
7c3de7d4
...
@@ -22,6 +22,19 @@ typedef Ref<NiBillboardNode> NiBillboardNodeRef;
...
@@ -22,6 +22,19 @@ typedef Ref<NiBillboardNode> NiBillboardNodeRef;
/*!
/*!
* These nodes will always be rotated to face the camera creating a billboard
* These nodes will always be rotated to face the camera creating a billboard
* effect for any attached objects.
* effect for any attached objects.
*
* In pre-10.1.0.0 the Flags field is used for BillboardMode.
* Here is what alphax says about these Flags after checking SceneImmerse:
*
* 0x0000 - 0x0010 is ALWAYS_FACE_CAMERA (somewhat misleadingly named, but
* that is what the format calls it),
* 0x0020 is ROTATE_ABOUT_UP,
* 0x0040 is RIGID_FACE_CAMERA (always face the viewport), and
* 0x0060 is ALWAYS_FACE_CENTER.
* That is where "left shift the corresponding value from v10 NIFs 5 bits"
* falls down - I do not know if v4 NIFs support the others, or if they actually
* mean anything, but these seem the most useful. The rotation of the node does
* seem to affect the axis of constraint.
*/
*/
class
NiBillboardNode
:
public
NiNode
{
class
NiBillboardNode
:
public
NiNode
{
public:
public:
...
...
This diff is collapsed.
Click to expand it.
src/obj/NiLinesData.cpp
+
9
−
2
View file @
7c3de7d4
...
@@ -48,7 +48,11 @@ void NiLinesData::Read( istream& in, list<unsigned int> & link_stack, const NifI
...
@@ -48,7 +48,11 @@ void NiLinesData::Read( istream& in, list<unsigned int> & link_stack, const NifI
NiGeometryData
::
Read
(
in
,
link_stack
,
info
);
NiGeometryData
::
Read
(
in
,
link_stack
,
info
);
lines
.
resize
(
numVertices
);
lines
.
resize
(
numVertices
);
for
(
unsigned
int
i1
=
0
;
i1
<
lines
.
size
();
i1
++
)
{
for
(
unsigned
int
i1
=
0
;
i1
<
lines
.
size
();
i1
++
)
{
NifStream
(
lines
[
i1
],
in
,
info
);
{
bool
tmp
;
NifStream
(
tmp
,
in
,
info
);
lines
[
i1
]
=
tmp
;
};
};
};
//--BEGIN POST-READ CUSTOM CODE--//
//--BEGIN POST-READ CUSTOM CODE--//
...
@@ -63,7 +67,10 @@ void NiLinesData::Write( ostream& out, const map<NiObjectRef,unsigned int> & lin
...
@@ -63,7 +67,10 @@ void NiLinesData::Write( ostream& out, const map<NiObjectRef,unsigned int> & lin
NiGeometryData
::
Write
(
out
,
link_map
,
info
);
NiGeometryData
::
Write
(
out
,
link_map
,
info
);
for
(
unsigned
int
i1
=
0
;
i1
<
lines
.
size
();
i1
++
)
{
for
(
unsigned
int
i1
=
0
;
i1
<
lines
.
size
();
i1
++
)
{
NifStream
(
lines
[
i1
],
out
,
info
);
{
bool
tmp
=
lines
[
i1
];
NifStream
(
tmp
,
out
,
info
);
};
};
};
//--BEGIN POST-WRITE CUSTOM CODE--//
//--BEGIN POST-WRITE CUSTOM CODE--//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment