Gandi-IDE / custom-extension

GNU Lesser General Public License v2.1
43 stars 62 forks source link

Threejs-CCW #207

Closed xiaochen004hao closed 7 months ago

xiaochen004hao commented 7 months ago

共创世界-3D扩展!

ThreejsCCW.js为主文件

可将ThreejsCCW.js根目录下的其他文件放在CCW cdn,在ThreejsCCW.js的开头处替换导入的路径

示例demo


PR一定要过啊!!!这个扩展我付出了很多心血(因为不可描述的原因,我只能周六上线)

🫶🫶🫶

xiaochen004hao commented 7 months ago

HCN可以把这个扩展放到”开发中的扩展“

fath11 commented 7 months ago
  1. You should make the custom canvas automatically resize, look at BBCode's source
  2. The demo project isn't shared? its says no access and i cant get the extension to work image
  3. Perhaps you should consider changing the extension's name to avoid confusion with Three
fath11 commented 7 months ago

What I am worrying about is support for Quake and GKamera. Looking at how the extension works, GKamera won't be a problem, but the Quake extension might be a different story.

Maybe this extension might need its own "load shader" block. If you look at #204 it's possible to get files from the Code Editor. Since i myself have been experimenting with Three.js for the past 3 months, i can create this feature if i have the time but don't expect me to work on it. Tho it will be great if you can

xiaochen004hao commented 7 months ago

我只能周六用电脑。。。

在 2024-03-24 20:08:54,"凌" @.***> 写道:

@FurryR commented on this pull request.

In ThreejsCCW/ThreejsCCW.js:

@@ -0,0 +1,1288 @@ +// 依赖库 +import * as THREE from @./build/three.module.js"; + +// 插件 +// 这里为该扩展目录下的三个js文件 +import {OBJLoader} from "https://livefile.xesimg.com/programme/python_assets/5bcc04d1d301d7a3e096fa6b8708af7f.js"; +import {OrbitControls} from 'https://livefile.xesimg.com/programme/python_assets/22b053c1486c0311a7e493e9419cebf7.js'; +import {MTLLoader} from 'https://livefile.xesimg.com/programme/python_assets/bfdf94e29d1b77c18dbfc5aa778e6df7.js'; +// import {OBJLoader} from @./file/OBJLoader.js"; +// import {OrbitControls} from @./file/OrbitControls.js'; +// import {MTLLoader} from @./file/MTLLoader.js'; +import WebGL from @.***/examples/jsm/capabilities/WebGL.js'; + +console.log(THREE);

⬇️ Suggested change -console.log(THREE);

调试信息不应当出现在送审的版本。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

xiaochen004hao commented 7 months ago

To be frank, who are you? I can only use the computer on Saturdays... Strive to revise all the suggestions completely

在 2024-03-24 17:59:02,fath11 @.***> 写道:

What I am worrying about is support for Quake and GKamera. Looking at how the extension works, GKamera won't be a problem, but the Quake extension might be a different story.

Maybe this extension might need its own "load shader" block. If you look at #204 it's possible to get files from the Code Editor. Since i myself have been experimenting with Three.js for the past 3 months, i can create this feature if i have the time but don't expect me to work on it. Tho it will be great if you can

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

xiaochen004hao commented 7 months ago

因为我js dom很菜,菜就多练的那种

在 2024-03-24 20:12:10,"凌" @.***> 写道:

@FurryR commented on this pull request.

In ThreejsCCW/ThreejsCCW.js:

  • })
  • }
  • this.scene.remove(model);
  • }
  • /**
    • 初始化
    • @param {number} args.color
    • @param {number} args.sizey
    • @param {number} args.sizex
    • @param {string} args.Anti_Aliasing
  • */
  • init(args) {
  • // this._ccw.style.display = "none"; // 隐藏原CCW显示canvas

为什么不能原版和 ThreeJS 共存呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

xiaochen004hao commented 7 months ago

那么,objects是不是也得这样搞

在 2024-03-24 20:09:39,"凌" @.***> 写道:

@FurryR commented on this pull request.

In ThreejsCCW/ThreejsCCW.js:

  • // 场景
  • this.scene = null;
  • // 相机配置
  • this.fov = null;
  • this.aspect = null;
  • this.near = null;
  • this.far = null;
  • this.camera = null;
  • this.controls = null;
  • // 环境光
  • this.ambient_light = null;
  • // 光
  • this.lights = new Object();

⬇️ Suggested change

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

xiaochen004hao commented 7 months ago

勇气可嘉,技术太菜。隔壁我记得有人做过兼容 Scratch 原版的 Three 了。

神奇,在github发的评论在我的网易邮箱写能看到唉

fath11 commented 7 months ago

勇气可嘉,技术太菜。隔壁我记得有人做过兼容 Scratch 原版的 Three 了。Courage is commendable, and technology is too good. Next door I remember someone making a Three that was compatible with the original Scratch version.

The extension uses skins. I am also trying to make a 3D extension that will coexist with Scratch without the use of skins but it requires me to learn more about WebGL which is very time-consuming as I have 0 prior knowledge about it. I am getting closer tho, the only thing slowing me down is school.

I am actually surprised someone made this PR.

xiaochen004hao commented 7 months ago
  1. You should make the custom canvas automatically resize, look at BBCode's source
  2. The demo project isn't shared? its says no access and i cant get the extension to work image
  3. Perhaps you should consider changing the extension's name to avoid confusion with Three

可是,装了自定义扩展的作品发不出来,难道我要发观察者邀请链接(应该是的)

xiaochen004hao commented 7 months ago

勇气可嘉,技术太菜。隔壁我记得有人做过兼容 Scratch 原版的 Three 了。 还要,我几乎没学过js,当c++ + Python来写的🙂

kukemc commented 7 months ago
  1. 您应该让自定义画布自动调整大小,查看 BBCode 的源代码
  2. 演示项目没有共享?它说没有访问权限,我无法让扩展程序工作 image
  3. 也许您应该考虑更改扩展名以避免与 Three 混淆

可是,装了自定义扩展的作品发不出来,难道我要发观察者邀请链接(应该是的)

你应该将扩展挂到cdn上然后直接发扩展url

xiaochen004hao commented 7 months ago
  1. 您应该让自定义画布自动调整大小,查看 BBCode 的源代码
  2. 演示项目没有共享?它说没有访问权限,我无法让扩展程序工作 image
  3. 也许您应该考虑更改扩展名以避免与 Three 混淆

可是,装了自定义扩展的作品发不出来,难道我要发观察者邀请链接(应该是的)

你应该将扩展挂到cdn上然后直接发链接

你是,酷可!

xiaochen004hao commented 7 months ago
  1. 您应该让自定义画布自动调整大小,查看 BBCode 的源代码
  2. 演示项目没有共享?它说没有访问权限,我无法让扩展程序工作 image
  3. 也许您应该考虑更改扩展名以避免与 Three 混淆

可是,装了自定义扩展的作品发不出来,难道我要发观察者邀请链接(应该是的)

你应该将扩展挂到cdn上然后直接发扩展url

还有

xiaochen004hao commented 7 months ago
  1. 您应该让自定义画布自动调整大小,查看 BBCode 的源代码
  2. 演示项目没有共享?它说没有访问权限,我无法让扩展程序工作 image
  3. 也许您应该考虑更改扩展名以避免与 Three 混淆

可是,装了自定义扩展的作品发不出来,难道我要发观察者邀请链接(应该是的)

你应该将扩展挂到cdn上然后直接发扩展url

唉 我刚才按了什么

MoreBugOfDog commented 7 months ago
  1. 您应该让自定义画布自动调整大小,查看 BBCode 的源代码
  2. 演示项目没有共享?它说没有访问权限,我无法让扩展程序工作 图像
  3. 也许您应该考虑更改扩展名以避免与 Three 混淆

可是,装了自定义扩展的作品发不出来,难道我要发观察者邀请链接(应该是的)

你应该将扩展挂到cdn上,然后直接发扩展url

唉 我刚才按了什么

关闭了这个PR,也就是说你取消了审核。。 如果需要审核,请再次发起PR