3D object support

4 месяца назад
Seeking some advice from someone who worked with .obj or .mtl file on the nopCommerce plugin. If there is anyone please help through my previous post. https://www.nopcommerce.com/en/boards/topic/92957/obj-file-support#291811
4 месяца назад
do you want to load 3d object using three.js https://threejs.org/
from .obj octet-stream?
4 месяца назад
(please don't create a new topic; just 'bump' your prior one :)
4 месяца назад
rk.menon wrote:
do you want to load 3d object using three.js https://threejs.org/
from .obj octet-stream?


Yes, while trying to load .obj file from the directory to threejs script, it can't load the file. But if I try with a url after uploading the .obj somewhere else, it works properly.
Faced the same issue in .Net project before and resolved by registering mime type on startup. But in the nopCommerce plugin, that trick isn't working.
4 месяца назад
New York wrote:
(please don't create a new topic; just 'bump' your prior one :)

Thanks for guiding me, I'll definitely do so next time.
4 месяца назад
jayadul wrote:
But if I try with a url after uploading the .obj somewhere else, it works properly.
Faced the same issue in .Net project before and resolved by registering mime type on startup. But in the nopCommerce plugin, that trick isn't working.

You can store your .obj file under www root from plugin and serve as url. What is the problem?
4 месяца назад
I didn't try to load the files keeping on the wwroot. I kept them on the plugin directory as generally, we keep static files inside specific plugin projects and load them from there, so that extra files don't occupy any space while uninstalling that plugin. Thanks for the advice, I'll apply your trick.
один месяц назад
jayadul wrote:
Seeking some advice from someone who worked with .obj or .mtl file on the nopCommerce plugin. If there is anyone please help through my previous post. https://www.nopcommerce.com/en/boards/topic/92957/obj-file-support#291811


Hi jayadul,

Could you please tell me, what are the results of the implementation of this solution? I now have similar difficulties with 3D objects and would like to know your experience in solving this problem.
один месяц назад
Uploaded files under another domain first. Later used the directory URL as it wasn't working with the local directory.