Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Stavor
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
Container Registry
Model registry
Operate
Environments
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
Orekit
Stavor
Commits
f1c43a6c
Commit
f1c43a6c
authored
10 years ago
by
Xavier Gibert
Browse files
Options
Downloads
Patches
Plain Diff
Model: plane started, Bugfix multiple transparency materials and hidding of text sprites
parent
a37dcbbb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/www/index.html
+1
-1
1 addition, 1 deletion
assets/www/index.html
assets/www/init.js
+8
-0
8 additions, 0 deletions
assets/www/init.js
assets/www/js/OrbitControls.js
+2
-2
2 additions, 2 deletions
assets/www/js/OrbitControls.js
with
11 additions
and
3 deletions
assets/www/index.html
+
1
−
1
View file @
f1c43a6c
...
...
@@ -133,7 +133,7 @@ This three.js demo is part of a collection at
// DEBUG OPTIONS
//-----------------------------------------------------------------------------------------------------------------------
var
auto_rotate_sc
=
tru
e
;
// If true, it ignores the simulator attitude and rotates the spacecraft.
var
auto_rotate_sc
=
fals
e
;
// If true, it ignores the simulator attitude and rotates the spacecraft.
//-----------------------------------------------------------------------------------------------------------------------
// PERFORMANCE VALUES (Set at initialization)
...
...
This diff is collapsed.
Click to expand it.
assets/www/init.js
+
8
−
0
View file @
f1c43a6c
...
...
@@ -66,6 +66,7 @@ function init()
transparent
:
true
,
side
:
THREE
.
FrontSide
,
metal
:
true
,
depthWrite
:
false
,
depthTest
:
false
,
alphaTest
:
0.1
,
opacity
:
0.4
,
}
);
var
mat_sphere2
=
new
THREE
.
MeshBasicMaterial
(
{
...
...
@@ -73,6 +74,7 @@ function init()
transparent
:
true
,
side
:
THREE
.
FrontSide
,
metal
:
true
,
depthWrite
:
false
,
depthTest
:
false
,
alphaTest
:
0.1
,
opacity
:
0.11
,
}
);
var
mats_sphere
=
[
mat_sphere
,
mat_sphere2
];
...
...
@@ -266,6 +268,12 @@ function init()
//-----------------------------------------------------------------------------------------------------------------------
// IMPLEMENT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if
(
show_planes
){
var
material_op
=
new
THREE
.
MeshNormalMaterial
({
color
:
0x0000FF
,
transparent
:
true
,
depthWrite
:
false
,
depthTest
:
false
,
alphaTest
:
0.1
,
opacity
:
0.1
,
side
:
THREE
.
DoubleSide
});
orbital_plane
=
new
THREE
.
Mesh
(
new
THREE
.
RingGeometry
(
sphere_radius
/
3
,
sphere_radius
,
30
,
10
,
0
,
Math
.
PI
*
2
),
material_op
);
orbital_plane
.
position
.
set
(
0
,
0
,
0
);
scene
.
add
(
orbital_plane
);
}
//-----------------------------------------------------------------------------------------------------------------------
// SKY
...
...
This diff is collapsed.
Click to expand it.
assets/www/js/OrbitControls.js
+
2
−
2
View file @
f1c43a6c
...
...
@@ -53,7 +53,7 @@ THREE.OrbitControls = function ( object, domElement, localElement ) {
this
.
rotateSpeed
=
1.0
;
// Set to true to disable this control
this
.
noPan
=
fals
e
;
this
.
noPan
=
tru
e
;
this
.
keyPanSpeed
=
7.0
;
// pixels moved per arrow key push
// Set to true to automatically rotate around the target
...
...
@@ -583,4 +583,4 @@ THREE.OrbitControls = function ( object, domElement, localElement ) {
};
THREE
.
OrbitControls
.
prototype
=
Object
.
create
(
THREE
.
EventDispatcher
.
prototype
);
\ No newline at end of file
THREE
.
OrbitControls
.
prototype
=
Object
.
create
(
THREE
.
EventDispatcher
.
prototype
);
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