š“pothicon
š“pothicon
Explore posts from servers
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
.
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
im getting three axis of rotation just by rotating x and y
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
viewMatrix.rotateXYZ(x, y, 0);
viewMatrix.rotateXYZ(x, y, 0);
its not like their seperate numbers
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
ive tried everything i can think of
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
what do you do to not rotate on the roll axis tho
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
but i need to rotate the matrix so that i can well.. rotate the camera around, just need to somehow eliminate the roll aspect immediately afterwards
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
Yes (but not sure why that matters)
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
open seasame
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
/reopen
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
.
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 11/11/2024 in #java-help
Removing roll from camera matrix
No description
23 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 10/27/2024 in #java-help
Figuring out path to resources in built jar
i figured out a solution:
public static String readFile(String filePath) {
List<String> file = new BufferedReader(new InputStreamReader(Utils.class.getClassLoader().getResourceAsStream(filePath))).lines().toList();
StringBuilder data = new StringBuilder();
for (String s : file) {
data.append(s).append("\n");
}
return data.toString();
}
public static String readFile(String filePath) {
List<String> file = new BufferedReader(new InputStreamReader(Utils.class.getClassLoader().getResourceAsStream(filePath))).lines().toList();
StringBuilder data = new StringBuilder();
for (String s : file) {
data.append(s).append("\n");
}
return data.toString();
}
11 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 10/27/2024 in #java-help
Figuring out path to resources in built jar
can you not read files that are inside jars?
11 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 10/27/2024 in #java-help
Figuring out path to resources in built jar
however it gives a NoSuchFileException when i attempt to use that path to read the file
11 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 10/27/2024 in #java-help
Figuring out path to resources in built jar
alr im doing that now and it is getting the correct path
11 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 8/2/2024 in #java-help
Repositioning objects to stay in the same position relative to each other when rotated.
or maybe its more to do with this part?
modelMatrix.translationRotateScaleMulAffine(position, rotation, new Vector3f(scale, scale, scale), gridMatrix);
modelMatrix.translationRotateScaleMulAffine(position, rotation, new Vector3f(scale, scale, scale), gridMatrix);
10 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 8/2/2024 in #java-help
Repositioning objects to stay in the same position relative to each other when rotated.
Reopen
10 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 8/2/2024 in #java-help
Repositioning objects to stay in the same position relative to each other when rotated.
Reopen
10 replies
JCHJava Community | Help. Code. Learn.
Created by š“pothicon on 8/2/2024 in #java-help
Repositioning objects to stay in the same position relative to each other when rotated.
so basically i need help with figuring out what to replace "Something that factors in the rotation value" with math would fix this
Vector3f rotatedPos = new Vector3f((pos.x+gridPos.x)+"Something that factors in the rotational value", (pos.y+gridPos.y)+"Something that factors in the rotational value", (pos.z+gridPos.z)+"Something that factors in the rotational value");
Vector3f rotatedPos = new Vector3f((pos.x+gridPos.x)+"Something that factors in the rotational value", (pos.y+gridPos.y)+"Something that factors in the rotational value", (pos.z+gridPos.z)+"Something that factors in the rotational value");
10 replies
DHDistant Horizons
Created by š“pothicon on 6/22/2024 in #help-me
Ignore non-colliding blocks setting not working
forgot i had that on
4 replies