
one.empty3.testscopy.tests.tests2.texturevideo.PlansVideo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of empty3-library-3d Show documentation
Show all versions of empty3-library-3d Show documentation
3D rendering engine. Plus modelling. Expected glsl textures 3d and 2d rendering3D primitives, and a lot of scenes' samples to test.+ Game Jogl reworked, Calculator (numbers and vectors). Java code parser implementation starts (<=1.2)
The newest version!
/*
*
* * Copyright (c) 2024. Manuel Daniel Dahmen
* *
* *
* * Copyright 2024 Manuel Daniel Dahmen
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License.
*
*
*/
package one.empty3.testscopy.tests.tests2.texturevideo;
import one.empty3.library.Camera;
import one.empty3.library.Point3D;
import one.empty3.library.TextureMov;
import one.empty3.library.core.testing.TestObjetStub;
import one.empty3.library.core.tribase.Plan3D;
/*__
* @author Dahmen Manuel
*/
public class PlansVideo extends TestObjetStub {
private
String avi1;
private String avi2;
private String avi3;
private String avi4;
public void ginit() {
this.avi1 = avi1;
this.avi2 = avi2;
this.avi3 = avi3;
this.avi4 = avi4;
String f1;
String f2;
String f3;
String f4;/*
if (args.length >= 4) {
f1 = args[0];
f2 = args[1];
f3 = args[2];
f4 = args[3];
} else {
*/
f1 = "resources/mov/VID_20200528_105353.mp4";
f2 = f1; // "C:\\EmptyCanvas\\Textures\\Il embrasse sur la bouche.mp4";
f3 = f1;//"C:\\EmptyCanvas\\Textures\\03.mkv";
f4 = f1;//"C:\\EmptyCanvas\\Textures\\04.mkv";
/*}
/* if (new File(f1).isFile() && new File(f2).isFile() && new File(f3).isFile() && new File(f4).isFile()) {
//PlansVideo pc = new PlansVideo(f1, f2, f3, f4);
pc.loop(true);
pc.run();
} else {
System.err.println("Erreur un fichier ou l'autre n'existe pas");
}*/
TextureMov tc1, tc2, tc3, tc4;
tc1 = new TextureMov(f1);
tc2 = new TextureMov(f2);
tc3 = new TextureMov(f3);
tc4 = new TextureMov(f4);
Plan3D p1, p2, p3, p4;
p1 = new Plan3D();
p1.texture(tc1);
p1.texture(tc1);
p1.pointOrigine(Point3D.O0);
p1.pointXExtremite(Point3D.X);
p1.pointYExtremite(Point3D.Y);
p2 = new Plan3D();
p2.texture(tc2);
p2.pointOrigine(Point3D.O0);
p2.pointXExtremite(Point3D.X.mult(-1d));
p2.pointYExtremite(Point3D.Y);
p3 = new Plan3D();
p3.texture(tc3);
p3.pointOrigine(Point3D.O0);
p3.pointXExtremite(Point3D.X);
p3.pointYExtremite(Point3D.Y.mult(-1d));
p4 = new Plan3D();
p4.texture(tc4);
p4.pointOrigine(Point3D.O0);
p4.pointXExtremite(Point3D.X.mult(-1d));
p4.pointYExtremite(Point3D.Y.mult(-1d));
scene().add(p1);
scene().add(p2);
scene().add(p3);
scene().add(p4);
}
public void finit() {
scene().cameraActive(
new Camera(
new Point3D(0d, 0d, -1d),
Point3D.O0
)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy