Forum Replies Created
-
AuthorPosts
-
hoodyParticipant
Thank you! That solved it!
hoodyParticipantI found out that on the puzzle editor i had zoomed out in the browser. If you are zooming out in the browser using” strg -” the quality of the render gets much better. How can i get this quality without zooming out in the browser?
hoodyParticipantCan you imagine a way to move the texture around in realtime so that its visible on the model?
2019-10-08 at 6:31 am in reply to: Triggering Normal Map Puzzle Multiple Times Crashes The Scene #19943hoodyParticipantHey Alex. I reduced the size to 2048×1024 as you recommended. Thats a good idea, but it will not solve the problem, that the puzzle is triggered multiple times.
hoodyParticipantI think i found the problem.
Ill post my solutuion later this day.
:)
hoodyParticipantHey. I tried that (tried with 0.1 ; 0,5 and 3 s) but it does not seem to make a difference.
hoodyParticipantI noticed that it does not matter if a normal map is uploaded. It seems to work alone with the texture from text. But it bevahes very strange.
Maybe you can take a look at this example:
You have to refresh the Link 5-6 times: at one moment the normal map will display correctly. But when you refresh the page again the normal is gone.sometimes its there and sometimes not (under the same cusom link)
I attached two screenshots, so that you can see the difference
hoodyParticipantHey Yuri. thanks for the answer.
I updated to the latest version and tried your puzzle, but the result is the same – the uploaded data is only 2 bytes small.
hoodyParticipantHi yuri. Im not sure where to put the timeout puzzle.
My Problem is not that the replace texture puzzle does not work on custom url.
My problem ist that the texture replacement happens with an empty file for the generated normal map (2bytes).
The texture from text is uploaded to the server without any problems but the files for the normal maps are just empty. So i suppose it has to do sth with the send data puzzle, but i cant figure it out.
hoodyParticipantNever mind! I got it! :)
hoodyParticipantHey Guys thanks for taking your time.
I managed to save the R,G,B values to the url parameters.
But the colors are not changing in the “customized scene” under the custom link.
-> Url paremeters have no influenceWhat am i missing?
Heres my code:
if (dictGet(getUrlData(‘PARAMS’), ‘R’) && dictGet(getUrlData(‘PARAMS’), ‘G’) && dictGet(getUrlData(‘PARAMS’), ‘B’)) {
loadFiledictGet(getUrlData(‘PARAMS’), ‘R’) && dictGet(getUrlData(‘PARAMS’), ‘G’) && dictGet(getUrlData(‘PARAMS’), ‘B’), function() {
let r_val = dictGet(getUrlData(‘PARAMS’), ‘R’); let g_val = dictGet(getUrlData(‘PARAMS’), ‘G’); let b_val = dictGet(getUrlData(‘PARAMS’), ‘B’); setMaterialColor(‘mat_schnalle_links’, ‘RGB’, r_val, g_val, b_val);
setMaterialColor(‘mat_schnalle_rechts’, ‘RGB’, r_val, g_val, b_val);
};
}eventHTMLElem(‘change’, ‘picker2’, true, function(event) {
let rbg = changeToRBG(event.target.value)
var vals = rbg.substring(rbg.indexOf(‘(‘) +1, rbg.length -1).split(‘,’)
let r_val = (vals[0]/255)
let g_val = (vals[1]/255)
let b_val = (vals[2]/255)setMaterialColor(‘mat_schnalle_links’, ‘RGB’, r_val, g_val, b_val);
setMaterialColor(‘mat_schnalle_rechts’, ‘RGB’, r_val, g_val, b_val);
saved_conf_url = setUrlParam(getUrlData(‘URL’), ‘R’, r_val);
saved_conf_url += ‘&G=’+g_val
saved_conf_url += ‘&B=’+b_valopenWebPage(saved_conf_url, ‘NO_RELOAD’);
});I think i´m close to get this solved with a hint in the right direction from you guys.
Thanks
hoodyParticipantNo what i mean is that i can see that parameters are saved to the url. But the configuration / the changes are not visible in the browser.
Link looks like this: http://brudastan.de/wp-content/uploads/verge3d/2507/Brudi.html?mat.color=0%2C1%2C0
Im not sure if mat.color is right?
hoodyParticipantHey Yuri, thanks for your support.
I came up with this:
eventHTMLElem(‘change’, ‘picker2’, true, function(event) {
let rbg = changeToRBG(event.target.value)
console.log(rbg)var vals = rbg.substring(rbg.indexOf(‘(‘) +1, rbg.length -1).split(‘,’)
console.log(vals[0]+” “+vals[1]+” “+vals[2])setMaterialColor(‘mat_schnalle_rechts’, ‘RGB’, (vals[0]/255), (vals[1]/255), (vals[2]/255));
let serial = “”
serial+=vals[0]/255+”,”+vals[1]/255+”,”+vals[2]/255
console.log(“serial: “+serial+” Typeof: “+ typeof serial)saved_conf_url = setUrlParam(getUrlData(‘URL’), ‘mat.color’, serial);
openWebPage(saved_conf_url, ‘NO_RELOAD’);
});The parameters are saved to the url – but when i share it on FB the configuration of the color is not saved.
What im i doing wrong?
hoodyParticipantHi Yuri!
Thank you very much for your quick answer!
Can you explain what you mean by “serialize RGB values to a text line”. Coud you post an example of code?
I also dont quite understand to what “image id” you are reffering – you mean “image_url”?
hoodyParticipantDude only 1000 € for a 3d configurator? I charge that for a pretty basic websites.
Greets from Germany
-
AuthorPosts