/*
Read a ini file
[Section1]
Param1=value1
[Section2]
Param2=value2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public float getCpuTemp() { | |
Process p; | |
try { | |
p = Runtime.getRuntime().exec("cat sys/class/thermal/thermal_zone0/temp"); | |
p.waitFor(); | |
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream())); | |
String line = reader.readLine(); | |
float temp = Float.parseFloat(line) / 1000.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright 2012 Shin Suzuki<[email protected]> | |
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, |
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) becaus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Provides methods for calculating point cloud densities. | |
All methods can handle instances of PLYObject or list or ndarray instances of lists of vertices. | |
""" | |
import numpy as np | |
import scipy.spatial | |
def getRealDensityFromPlane(ply, planeParams): | |
""" |
OlderNewer