GithubHelp home page GithubHelp logo

Couple of questions about halcyon HOT 49 CLOSED

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024
Couple of questions

from halcyon.

Comments (49)

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

Hey there,

You have to run both Whip and Aperture. Whip is the actual Asset server and Aperture helps speed up texture and mesh rendering. My team has aperture running on our machines running regions and Whip on our machine running the grid services for our Halcyon test grid.

According to Halcyon.ini the Map Server URI should be: MapImageServerURI="http://xxx.xxx.xxx.xxx:9000/" (Replace the x with your domain url or IP).

In reality, all you should need to do for it to work correctly is leave all the defaults in the configuration files except add the DB connection strings and change the IP addresses to your domain url or IP address.
Other then that you should be good to go with textures for regions showing up properly in all viewers.

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

I have the Defaults set but the map textures only show up properly in firestorm and i am in gridmode so i am not sure the 9000 port is valid in that case

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

It would appear to be as it shows up in all viewers for me. However, in grid mode, you also have to make the necessary changes in a couple of xml configuration files as well. You can always email me directly and I can pass you a copy of the xml files if you don't have them.

I can also be reached on Second Galaxy (My team's main grid), and on Secondlife. (Fred2008 Levasseur InSL).

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

i have the xml files and grid is running files i am just not sure about UserServer_Config.xml there it says to map_server_uri which by default is empty and defaults to secondlife

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

Add the "http://xxx.xxx.xxx.xxx:9000/" there (change the xxx.xxx.xxx.xxx to your domain url or IP address) should sort that out.

FOrgot to mention the obvious, make sure you reboot your grid and region servers after doing the edit to ensure everything updates properly.

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

set as advised
no change
karte

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

What viewer are you using?

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

Inworldz3 Singularity and Firestorm

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

Okay, The InWorldz viewer I am seeing the same thing so that is likely an issue with their specific viewer.

For Firestorm (For OpenSim) you should see something similar to this:

2018-03-15

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

fire
Yes like is said before firestorm is fine

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

Yeah, I think its just they need to update their specific viewer (potentially). For the most part, Firestorm is widely used by many people (on most grids) from what I am aware of at the moment.

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

yes but it is still a issue as the same viewer works fine on the inworldz grid, i think they need an update on the wiki on how to set this up

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

The info is there on the wiki on the configuration page (though it could be written better). But your configs are correct now if Firestorm is seeing it correctly so in this case it is likely an issue with their specific viewer.

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

yes but for example on inworldz the mapserver uri returns http://places.inworldz.com/map2.php/ in their own viewer, i think inworldz is not picking that up correctly

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

Yes but the Halcyon architecture does not have everything that InWorldz does. In fact they haven't updated the viewer since they open sourced Halcyon (would need to check their last commit). However their viewer is based on an older version of the Alchemy Viewer. So you could take the latest Alchemy viewer and that probably will work.

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

Alchemy has the same issue, just tested

from halcyon.

emperorstarfinder avatar emperorstarfinder commented on August 15, 2024

Okay then rest assured your configs are correct. Its likely a bug with how the info is being received by the viewer itself.

from halcyon.

cinderblocks avatar cinderblocks commented on August 15, 2024

You could open the viewer logs and see why it isn't downloading the tiles instead of throwing up your arms and saying two out of three viewers are broken.

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

this explains a lot i will try it now

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

yay it works perfectly thanks a lot this helped

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

now only the gettexture for now i solved it by hardcoding the uuid instead of uuid.random but i dont think this is a suitable solution.

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

yes i am fetching it from there and convert it to jpeg but it uses a random uuid for the GetTexture and GetMesh it doesnt seem to have a GetTexture/?texture_id= http handler

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

well this is what i am doing to display profile pictures on my website:

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

$uuid = escapeshellcmd(mysql_escape_string($_GET["uuid"]));
$s = 256 | 0;
$geom = $s."x".$s;
$size = escapeshellarg($geom);

$url = "http://domain.com:8000/CAPS/HTT/5f8e7183-97eb-42eb-a0db-2fa668268b63/?texture_id=$uuid";

if (!file_exists("./tmp/$uuid-$geom.png"))
{
copy ($url, "./tmp/$uuid.j2k");
exec ("j2k_to_image -i ./tmp/$uuid.j2k -o ./tmp/$uuid.tga");
exec ("convert -scale $size ./tmp/$uuid.tga ./tmp/$uuid-$geom.png");
unlink ("./tmp/$uuid.j2k");
unlink ("./tmp/$uuid.tga");
}

if (!file_exists("./tmp/$uuid-$geom.png"))
{
exit;
}

header("Content-type: image/png");

$fd = fopen("./tmp/$uuid-$geom.png", "r");
fpassthru($fd);
fclose($fd);

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

i am using php so i probably wont come around to writing my own texture handler using chattel as it seems

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

for now i solved it by modifying halcyon to use one global aperture with a fixed CAP for gettexture (no bugs seen so far)

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

yes i am considering to add a httphandler cap to aperture

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

but the global aperture i will probably keep , considering the machine running it is fast enough lol

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

do you have an example to create a cap?

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

ok i am creating a cap with php now render the image and remove the cap again with php i hope that is the right way to do it.

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024
function GUID()
{
    if (function_exists('com_create_guid') === true)
    {
        return trim(com_create_guid(), '{}');
    }

    return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
}    
$guid = GUID();
$response = file_get_contents('http://MYDOMAIN:8000/CAPS/HTT/ADDCAP/MYTOKEN/'.$guid.'/50000');
$uuid = escapeshellcmd(mysql_escape_string($_GET["uuid"]));
$s = 256 | 0;
$geom = $s."x".$s;
$size = escapeshellarg($geom);

$url = "http://MYDOMAIN:8000/CAPS/HTT/$guid/?texture_id=$uuid";

if (!file_exists("./tmp/$uuid-$geom.png"))
{
	copy ($url, "./tmp/$uuid.j2k");
	exec ("j2k_to_image -i ./tmp/$uuid.j2k -o ./tmp/$uuid.tga");
	exec ("convert -scale $size ./tmp/$uuid.tga ./tmp/$uuid-$geom.png");
	unlink ("./tmp/$uuid.j2k");
	unlink ("./tmp/$uuid.tga");
}

if (!file_exists("./tmp/$uuid-$geom.png"))
{
	exit;
}

header("Content-type: image/png");

$fd = fopen("./tmp/$uuid-$geom.png", "r");
fpassthru($fd);
fclose($fd); 
unlink("./tmp/$uuid-$geom.png");
$lol = file_get_contents('http://MYDOMAIN:8000/CAPS/HTT/REMCAP/MYTOKEN/'.$guid.'/');

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

yes i changed my domain and my token so nobody can access my aperture lol

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

On a sidenote: Leaving the bw from the Addcap away causes Aperture to crash

from halcyon.

mdickson avatar mdickson commented on August 15, 2024

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

mdickson avatar mdickson commented on August 15, 2024

from halcyon.

kf6kjg avatar kf6kjg commented on August 15, 2024

from halcyon.

WhiteCoreWebUI avatar WhiteCoreWebUI commented on August 15, 2024

@kf6kjg thanks for the idea about keeping the cap open, i now have a bit of balancing in that cycles through 6 aperture servers and writes the cap it openened to the database and a cronjob closes the cap after 2 hours so i am sorted, you can close this issue :)

from halcyon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.